import React from 'react' import type { CheckboxProps } from './checkbox' import ConditionalWrapper from '../ConditionalWrapper/ConditionalWrapper.tsx' import { classNames } from '../../utils/classNames' import check from '../../icons/check.svg?raw' import styles from './checkbox.module.scss' export type Props = CheckboxProps> & { onChange?: React.ChangeEventHandler onClick?: React.MouseEventHandler } const Checkbox = ({ checked, label, subText, color, className, ...rest }: Props) => { const classes = classNames([ styles.checkbox, label && subText && styles.col, className ]) const style = color ? { '--w-checkbox-color': color } as React.CSSProperties : undefined return ( ) } export default Checkbox