import { type FC, type InputHTMLAttributes } from 'react' import Error from './Error' import { clx } from '../helpers/utils' type Props = { label?: string, error_text?: string isNotRequired?: boolean } & InputHTMLAttributes const Textarea: FC = (props: Props) => { return ( { props.label && {props.label} {props.isNotRequired && ( (اختیاری) )} } { props.error_text && } ) } export default Textarea