import { Switch } from '@headlessui/react' import { classNames } from '@app/utils/classes' import { DetailedHTMLProps, FC, HTMLAttributes, PropsWithChildren } from 'react' interface SwitchInputProps extends DetailedHTMLProps< HTMLAttributes, HTMLButtonElement > { checked?: boolean value?: string onChange(x: any): any } export const SwitchInput: FC> = ({ children, checked, value, id, className, onChange, }) => { return ( {children || value ? ( {children || value} ) : null} ) }