import { Text, Divider, makeStyles } from '@fluentui/react-components'; import { Flex } from '@fluentui/react-migration-v0-v9'; import type { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; const useStyles = makeStyles({ root: { marginTop: '8px', marginBottom: '8px', }, }); /** 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, optionalDataControl, }: TitleFieldProps) { const classes = useStyles(); let heading = ( {title} ); if (optionalDataControl) { heading = ( {heading} {optionalDataControl} ); } return (
{heading}
); }