import { type ChangeEvent, type FC, useCallback } from 'react'; import styles from './Textarea.module.css'; export interface TextareaProps { value?: string, onChange?: (value: string) => void, defaultValue?: string, placeholder?: string, name?: string, readOnly?: boolean, autoFocus?: boolean, } export const Textarea: FC = ({ onChange, ...props }) => { const handleChange = useCallback((e: ChangeEvent) => { onChange?.(e.target.value); }, [onChange]); return