import React from "react";
import {
  CustomCheck,
} from "./CustomCheckboxStyles";
export interface CustomCheckboxProps {
  checked?: boolean;
  defaultChecked?: boolean;
  disabled?: boolean;
  onChange?: () => void;
  name?: string;
  value?: string;
}
export const RooCheckbox: React.FC<CustomCheckboxProps> = (props) => {
  const { disabled, name } = props;

  return (
    <CustomCheck disabled={disabled}>
      <input type="checkbox" {...props}/>
      <label>{name}</label>
    </CustomCheck>
  );
};
