, 'onChange'> {
value: string
onChange: (value: string) => void
rows?: number
}
export function Input({ value, onChange, Icon, className = '', ...props }: InputProps) {
if (Icon) {
return (
onChange(e.target.value)}
{...props}
/>
)
}
return (
onChange(e.target.value)}
{...props}
/>
)
}
export function Textarea({ value, onChange, rows = 4, className = '', ...props }: TextareaProps) {
return (