import clsx from 'clsx' import { FormControl } from 'components/FormControl' import type { ComponentPropsWithRef } from 'react' import { forwardRef, useImperativeHandle, useRef } from 'react' import { JsonValidStatus } from './JsonValidStatus' import { StyledTextArea } from './StyledTextArea' interface BaseProps { id: string name: string title: string subtitle?: string isRequired?: boolean } type SlicedInputProps = Omit, keyof BaseProps> export type FormTextAreaProps = BaseProps & SlicedInputProps export const FormTextArea = forwardRef( function FormTextArea(props, ref) { const { id, name, title, subtitle, isRequired, ...rest } = props return ( ) }, // ) export const JsonTextArea = forwardRef( function JsonTextArea(props, ref) { const { id, name, title, subtitle, className, ...rest } = props const innerRef = useRef(null) useImperativeHandle(ref, () => innerRef.current!) return ( ) }, // )