import React from 'react';

export interface IInputProps
  extends React.DetailedHTMLProps<
    React.InputHTMLAttributes<HTMLInputElement>,
    HTMLInputElement
  > {
  innerRef?: React.Ref<HTMLInputElement>;
}

export const Input: React.FC<IInputProps> = ({ ...props }) => {
  const { innerRef, ...rest } = props;

  return <input {...rest} ref={props.innerRef} />;
};
