import { Field, Label, Textarea } from '@headlessui/react'; import { ExclamationCircleIcon } from '@heroicons/react/24/outline'; import { ChangeEvent, useState } from 'react'; type TextAreaEditorProps = { label: string; rows: number; value: string | string[]; id: string; name: string; placeholder: string; onChange: (content: string) => void; requiredAlert?: boolean; requiredField?: boolean; }; const TextArea: React.FC = ({ label, rows, value, id, name, placeholder, onChange, requiredAlert = false, requiredField = false, }) => { const [isFocused, setIsFocused] = useState(false); return (