import React from "react"; import { Checkbox as MuiCheckbox, CheckboxProps, FormControlLabel, } from "@mui/material"; import { SxProps, Theme } from "@mui/material/styles"; interface Props { name: string; label: string; color: CheckboxProps["color"]; checked?: boolean; onChange: (e: React.ChangeEvent) => void; sx_label?: SxProps; } const Checkbox = ({ name, color, label, checked = false, onChange, sx_label = [], }: Props) => ( } label={label} /> ); export default Checkbox;