import { Description, Field, Label, Textarea } from '@headlessui/react'; import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { close, Icon } from '@wordpress/icons'; export const CustomTextarea = ({ placeholder, className, title, onChange, value, description = null, required = false, hideEditor = false, setHideEditor = () => {}, id, }) => { const handleEditClick = (e) => { e.preventDefault(); setHideEditor(false); }; return ( {description && ( {__(description, 'extendify-local')} )} {hideEditor ? (
{value}
) : (