import { Label } from '~/components/ui/label'; import { Switch } from '~/components/ui/switch'; import { Text } from '~/components/ui/text'; import { cn } from '~/lib/utils'; interface SwitchRowProps { id: string; label: string; hint?: string; checked: boolean; disabled?: boolean; framed?: boolean; onCheckedChange: (checked: boolean) => void; } // A labelled on/off setting export function SwitchRow({ id, label, hint, checked, disabled, framed, onCheckedChange }: SwitchRowProps) { return (
{hint && {hint}}
); }