import { ChangeEventHandler, FC } from 'react'; export interface FancyCheckboxProps { inputs: Array<{ label: string; description: string; [key: string]: any; }>; onChange?: ChangeEventHandler; } const FancyCheckbox: FC = (props) => { return ( <>
List {props.inputs.map((input) => (
o)(input)} onChange={props.onChange} id={input.id} type="checkbox" className="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded" />

{input.description}

))}
); }; export default FancyCheckbox;