mirror of
https://github.com/alexhopeoconnor/frigate.git
synced 2026-10-21 02:35:58 +10:00
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import Heading from "@/components/ui/heading";
|
|
import { Label } from "@/components/ui/label";
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectGroup,
|
|
SelectItem,
|
|
SelectLabel,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from "@/components/ui/select";
|
|
import { Switch } from "@/components/ui/switch";
|
|
import { useEffect } from "react";
|
|
|
|
export default function General() {
|
|
useEffect(() => {
|
|
document.title = "General Settings - Frigate";
|
|
}, []);
|
|
|
|
return (
|
|
<>
|
|
<Heading as="h2">Settings</Heading>
|
|
<div className="flex items-center space-x-2 mt-5">
|
|
<Switch id="lowdata" checked={false} onCheckedChange={() => {}} />
|
|
<Label htmlFor="lowdata">Low Data Mode (this device only)</Label>
|
|
</div>
|
|
|
|
<div className="flex items-center space-x-2 mt-5">
|
|
<Select>
|
|
<SelectTrigger className="w-[180px]">
|
|
<SelectValue placeholder="Another General Option" />
|
|
</SelectTrigger>
|
|
<SelectContent>
|
|
<SelectGroup>
|
|
<SelectLabel>Live Mode</SelectLabel>
|
|
<SelectItem value="jsmpeg">JSMpeg</SelectItem>
|
|
<SelectItem value="mse">MSE</SelectItem>
|
|
<SelectItem value="webrtc">WebRTC</SelectItem>
|
|
</SelectGroup>
|
|
</SelectContent>
|
|
</Select>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|