import React from "react";
import { CustomCheck } from "../RooCheckbox/CustomCheckboxStyles";

export interface CustomRadioProps {
    checked?: boolean;
    defaultChecked?: boolean;
    disabled?: boolean;
    onChange?: () => void;
    name?: string;
    value?: string;
  }
  export const RooRadio: React.FC<CustomRadioProps> = (props) => {
    const { disabled, name } = props;
  
    return (
      <CustomCheck disabled={disabled}>
        <input type="radio" {...props}/>
        <label>{name}</label>
      </CustomCheck>
    );
  };
  