/** * External dependencies */ import classnames from 'classnames'; import {TextareaHTMLAttributes} from 'react'; import {Controller, useFormContext} from 'react-hook-form'; /** * Internal dependencies */ import './styles.scss'; type TextareaControlProps = TextareaHTMLAttributes & { name: string; help?: string; className?: string; }; /** * @since 4.0.0 */ function TextareaControl({name, help, maxLength, className, ...rest}: TextareaControlProps) { const {control} = useFormContext(); return ( (