import { Label } from "../../components/ui/label"; import { Switch } from "../../components/ui/switch"; import { useFieldContext } from "."; type SwitchField = { trueLabel: string; falseLabel: string; }; export const SwitchField = ({ trueLabel = "True", falseLabel = "False", }: SwitchField) => { const field = useFieldContext(); const checked = field.state.value ?? false; return (
); };