import { TextareaControl } from '@wordpress/components';

const TextareaField = ( { field, value, onChange } ) => (
	<TextareaControl
		label={ field.label }
		value={ value ?? '' }
		onChange={ onChange }
		help={ field.help }
		required={ field.required }
		rows={ field.rows ?? 4 }
	/>
);

export default TextareaField;
