import { FormControlLabel, Checkbox, useTheme, Box } from "@mui/material"; import React from "react"; import type { SxProps } from "@mui/material"; interface Props { label: string; handleChange?: (event: React.ChangeEvent) => void; checked?: boolean; sx?: SxProps; } export default function CustomCheckbox({ label, handleChange, checked, sx }: Props) { const theme = useTheme(); return ( } checkedIcon={} onChange={handleChange} checked={checked} />} label={label} sx={{ color: theme.palette.grey2.main, ml: "-9px", userSelect: "none", ...sx, }} /> ); } function Icon() { const theme = useTheme(); return ( ); } function CheckedIcon() { const theme = useTheme(); return ( ); }