import { Bell } from "lucide-react"; import { Input } from "~/components/ui/input"; import { Label } from "~/components/ui/label"; import { SettingsSection, SettingsStatusPill } from "./SettingsSection"; export function NotificationsSection({ active, savedDiscordWebhookUrl, discordWebhookUrl, onDiscordWebhookUrlChange, }: { active: boolean; savedDiscordWebhookUrl: string | null; discordWebhookUrl: string; onDiscordWebhookUrlChange: (v: string) => void; }) { return ( {savedDiscordWebhookUrl ? "Configured" : "Optional"}} className={active ? undefined : "hidden"} >
onDiscordWebhookUrlChange(e.target.value)} placeholder="https://discord.com/api/webhooks/..." />

Create a webhook in Discord under Server Settings, Integrations, Webhooks.

); }