import { Switch } from "~/components/ui/switch"; import { Label } from "~/components/ui/label"; interface NotificationSettingsProps { enabled: boolean; onEnabledChange: (enabled: boolean) => void; isSupported: boolean; permissionState: NotificationPermission | "unsupported"; } export function NotificationSettings({ enabled, onEnabledChange, isSupported, permissionState, }: NotificationSettingsProps) { if (!isSupported) { return null; } return (
{permissionState === "denied" && (

Notifications blocked by browser. Update in browser settings to enable.

)}
); }