import { Box, Checkbox } from "@chakra-ui/react"; import { Row } from "../../../interfaces/dialog"; interface Props { row: Row; index: number; handleChange: (value: string | boolean, index: number) => void; } const CheckboxField: React.FC = (props) => { return ( <> props.handleChange(e.target.checked, props.index)} > {props.row.label} ); }; export default CheckboxField;