2025-08-19 13:46:13 +03:00
|
|
|
interface FormTextAreaProps {
|
2025-08-19 22:54:15 +03:00
|
|
|
id?: string;
|
2025-08-19 13:46:13 +03:00
|
|
|
currentValue: string;
|
|
|
|
|
onBlur?(newValue: string): void;
|
|
|
|
|
rows: number;
|
|
|
|
|
}
|
2025-08-19 22:54:15 +03:00
|
|
|
export default function FormTextArea({ id, onBlur, rows, currentValue }: FormTextAreaProps) {
|
2025-08-19 13:46:13 +03:00
|
|
|
return (
|
|
|
|
|
<textarea
|
2025-08-19 22:54:15 +03:00
|
|
|
id={id}
|
2025-08-19 13:46:13 +03:00
|
|
|
rows={rows}
|
|
|
|
|
onBlur={(e) => {
|
|
|
|
|
onBlur?.(e.currentTarget.value);
|
|
|
|
|
}}
|
2025-08-19 17:39:41 +03:00
|
|
|
style={{ width: "100%" }}
|
2025-08-19 13:46:13 +03:00
|
|
|
>{currentValue}</textarea>
|
|
|
|
|
)
|
|
|
|
|
}
|