import { FieldValues, Path, RegisterOptions, UseFormReturn } from "react-hook-form"; import { cn } from "../../../helper/cn"; interface InputProps extends Omit, "form"> { name: Path; form: UseFormReturn; formOptions?: RegisterOptions; label?: string; } export const Switch = ({ name, label = name, form, formOptions, className, ...inputProps }: InputProps) => { return (
); };