import React from 'react' import { Switch } from '@headlessui/react' import { Controller } from 'react-hook-form' function classNames(...classes: any) { return classes.filter(Boolean).join(' ') } type Props = { id: string title: string control: any required?: boolean } const ToggleSwitch: React.FC = ({ id, title, control, required = false, }) => (
{title}
( Use setting )} />
) export default ToggleSwitch