'use client' import { getTranslation } from '@payloadcms/translations' import React from 'react' import type { TextAreaInputProps } from './types.js' import { FieldDescription } from '../../forms/FieldDescription/index.js' import { FieldError } from '../../forms/FieldError/index.js' import { FieldLabel } from '../../forms/FieldLabel/index.js' import { useTranslation } from '../../providers/Translation/index.js' import { fieldBaseClass } from '../shared/index.js' import './index.scss' export const TextareaInput: React.FC = (props) => { const { AfterInput, BeforeInput, CustomDescription, CustomError, CustomLabel, className, descriptionProps, errorProps, label, labelProps, onChange, path, placeholder, readOnly, required, rows, rtl, showError, style, value, width, } = props const { i18n } = useTranslation() return (
{BeforeInput}