import { CheckBoxProps } from '@/components/CheckBox';
import { CheckBox as CheckBoxSrc } from '@/index';

export default {
  title: 'components',
  args: {
    label: 'check',
    defaultChecked: false,
    onclick: () => {
      // to do
    },
  },
};

export const CheckBox: React.FC<CheckBoxProps> = ({
  label,
  defaultChecked,
  onClick = () => {
    // to do
  },
}) => {
  return (
    <CheckBoxSrc
      label={label}
      defaultChecked={defaultChecked}
      onClick={onClick}
    />
  );
};
