import { forwardRef } from "react"; import Checkbox from "@mui/material/Checkbox"; import type { CheckboxProps } from "@mui/material/Checkbox"; import { Square, SquareCheck } from "lucide-react"; import { useTheme } from "@mui/material/styles"; type CheckboxInputProps = CheckboxProps & { label?: string; }; export const CheckboxInput = forwardRef( function CheckboxInput( { sx, ...props }: CheckboxInputProps, ref: React.Ref ) { const theme = useTheme(); return ( } checkedIcon={ } sx={{ color: theme.palette.text.secondary, "&.Mui-checked": { color: theme.palette.primary.main, }, "&:hover": { backgroundColor: "transparent" }, "& svg": { stroke: "currentColor", }, "& svg path, & svg line, & svg polyline, & svg rect": { stroke: "currentColor", fill: "none", }, ...sx, }} /> ); } );