import { ReactNode, TextareaHTMLAttributes } from 'react';
import { Controller, FieldValues, RegisterOptions, useFormContext } from 'react-hook-form';
import { classNames } from '@/shared/lib/classNames/classNames';
import { Cell } from '@/shared/ui/FormComponents/fieldsUI/Cell/Cell';
import { Textarea } from '../../fieldsUI/Textarea/Textarea';
import cls from './HTextarea.module.scss';
interface HTextareaProps extends Omit, 'value' | 'onChange' | 'name'> {
className?: string;
name: string;
label?: string;
noteText?: ReactNode;
registerOptions?: Omit, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
}
export const HTextarea = (props: HTextareaProps) => {
const { className, name, label, noteText, registerOptions, ...otherProps } = props;
const { control } = useFormContext();
return (
(
|
)}
/>
);
};