import { Button } from "@/components/ui/button"; import Heading from "@/components/ui/heading"; import { Label } from "@/components/ui/label"; import { Toaster } from "@/components/ui/sonner"; import { Switch } from "@/components/ui/switch"; import { FrigateConfig } from "@/types/frigateConfig"; import axios from "axios"; import useSWR from "swr"; export default function NotificationView() { const { data: config } = useSWR("config"); return ( <>
Notification Settings
{}} />

Enable notifications for Frigate alerts. This requires Frigate to be externally accessible.

{config?.notifications.enabled && (
{ // TODO need to register the worker before enabling the notifications button // TODO make the notifications button show enable / disable depending on current state }
)}
); }