import { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; const REQUIRED_FIELD_SYMBOL = '*'; /** The `TitleField` is the template to use to render the title of a field * * @param props - The `TitleFieldProps` for this component */ export default function TitleField( props: TitleFieldProps, ) { const { id, title, required, optionalDataControl } = props; return ( {title} {required && {REQUIRED_FIELD_SYMBOL}} {optionalDataControl && ( {optionalDataControl} )} ); }