import { GetProps, Label, Switch as TamaguiSwitch, XStack, YStack } from "tamagui"; import { withController } from "@/ui/components/controls/forms/withController"; import { Caption } from "@/ui/components/typography"; type SwitchProps = GetProps & { label: string; description?: string; isChecked: boolean; onCheckedChange: (checked: boolean) => void; id?: string; }; export const Switch = (props: SwitchProps) => { const { label, description, isChecked, onCheckedChange, id, ...rest } = props; return ( {description && {description}} ); }; export const FormSwitch = withController(Switch);