import React from 'react'

interface Props {
    onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
    num: number,
    variable: number,
    label: string,
    value: string,
  }

  export const Input: React.FC<Props> = ({num, variable, onChange }) => {
    return(
        <input
            type="radio"
            name="radio"
            className='radioButton'
            value={num}
            onChange={onChange}
            checked={variable == num}
        />
    )
}

