import { Ref } from 'react'; import { cn } from '@/lib/helper'; import { TextInputProps } from '@/components/input/TextInput'; interface FileInputProps extends Omit< TextInputProps, | 'type' | 'value' | 'isValid' | 'startAdornment' | 'endAdornment' | 'isLoading' > { ref?: Ref; accept?: string; className?: { wrapper?: string; label?: string; input?: string; }; } const FileInput = ({ ref, label, bottomLabel, name, placeholder, accept = '*', className, isError, errorMessage, disabled = false, onChange, onBlur, readOnly = false, }: FileInputProps) => { return (
{label && ( )} {bottomLabel && (

{bottomLabel}

)} {isError &&

{errorMessage}

}
); }; export default FileInput;