import * as React from 'react'; import { cn } from '@/lib/utils'; export interface InputProps extends React.InputHTMLAttributes { icon?: React.ReactNode; label?: string; } import { Search, Upload } from 'lucide-react'; import { Label } from './label'; import { FileUpload as BaseFileUpload } from './file-upload'; const Input = React.forwardRef( ({ className, type, icon, label, id, ...props }, ref) => { return (
{label && }
{icon && (
{icon}
)}
); } ); Input.displayName = 'Input'; const SearchInput = React.forwardRef( (props, ref) => } /> ); SearchInput.displayName = 'SearchInput'; // Shim for legacy FileUpload usage const FileUpload = (props: any) => (
{ }} {...props} />
); export { Input, SearchInput, FileUpload };