import React, { useMemo } from 'react' import useTheme from '../use-theme' interface Props { disabled?: boolean checked?: boolean } const CheckboxIcon: React.FC = ({ disabled, checked }) => { const theme = useTheme() const { fill, bg, stroke } = useMemo(() => { return { fill: theme.palette.foreground, bg: theme.palette.background, stroke: theme.palette.accents_10 } }, [theme.palette]) return ( <> {checked ? ( ) : ( )} ) } const MemoCheckboxIcon = React.memo(CheckboxIcon) export default MemoCheckboxIcon