import { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { Header } from 'semantic-ui-react'; import { getSemanticProps } from '../util'; const DEFAULT_OPTIONS = { inverted: false, dividing: true, }; /** 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({ id, title, uiSchema, }: TitleFieldProps) { const semanticProps = getSemanticProps({ uiSchema, defaultSchemaProps: DEFAULT_OPTIONS, }); if (!title) { return null; } return (
{title}
); }