import React from 'react'
import classNames from 'classnames';

interface Props {
    onChange: (name: string, value: string,) => 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}
        />
    )
}

