import type { FormContextType, RJSFSchema, StrictRJSFSchema, TitleFieldProps } from '@rjsf/utils'; import { getUiOptions } from '@rjsf/utils'; import Col from 'react-bootstrap/Col'; import Container from 'react-bootstrap/Container'; import Row from 'react-bootstrap/Row'; export default function TitleField({ id, title, uiSchema, optionalDataControl, }: TitleFieldProps) { const uiOptions = getUiOptions(uiSchema); let heading =
{uiOptions.title || title}
; if (optionalDataControl) { heading = ( {heading} {optionalDataControl} ); } return (
{heading}
); }