import { clsx } from 'clsx';
import React from 'react';
import { FORM_CONTROL_BASE_CLASSES } from '@/components/ui/formClasses.ts';

const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
  ({ className, ...props }, ref) => {
    return (
      <input
        ref={ref}
        className={clsx(
          'flex h-10',
          FORM_CONTROL_BASE_CLASSES,
          'file:border-0 file:bg-transparent file:text-sm file:font-medium',
          className
        )}
        {...props}
      />
    );
  }
);

Input.displayName = 'Input';

export default Input;
