import React from 'react'; type CheckboxProps = { id: string; name: string; className?: string; checked?: boolean; onChange?: (newValue: boolean) => void; }; export const CheckBox: React.FC = ({ id, name, className, checked, onChange, children }) => (
onChange && onChange(e.target.checked)} />
);