import type { InputHTMLAttributes, TextareaHTMLAttributes } from 'react' import type { IconComponent } from './Icons' interface InputProps extends Omit, 'onChange'> { value: string onChange: (value: string) => void Icon?: IconComponent } interface TextareaProps extends Omit, '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 (