import { Switch } from '@headlessui/react'; type PrimarySwitchProps = { enabled: boolean; onChange: React.Dispatch>; label?: string; }; const PrimarySwitch: React.FC = ({ enabled, onChange, label, }) => { return (
{label ? {label} : null}
); }; export default PrimarySwitch;