import { type Ref } from 'react';

type Props = {
  label: string;
  ref: Ref<HTMLInputElement>;
};

const Input: React.FC<Props> = ({ label, ref }) => {
  return (
    <div>
      <label>{label}</label>
      <input type="text" ref={ref} />
    </div>
  );
};

export default Input;
