import { Switch } from '@/components/ui/switch'; import { Label } from '@/components/ui/label'; interface SwitchFieldProps { id: string; checked: boolean | undefined; onChange: ( checked: boolean ) => void; /** Inline label after the switch. */ label?: string; } /** Toggle for a boolean setting, with an optional inline label. */ export default function SwitchField( { id, checked, onChange, label }: SwitchFieldProps ) { return ( { label && ( ) } ); }