import { Text } from '@mantine/core'; import { RichHelp } from '@rjsf/core'; import type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { helpId } from '@rjsf/utils'; /** The `FieldHelpTemplate` component renders any help desired for a field, in a block element, since `RichHelp` can * render markdown blocks * * @param props - The `FieldHelpProps` to be rendered */ export default function FieldHelpTemplate< T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = FormContextType, >(props: FieldHelpProps) { const { id, help, uiSchema, registry, presentation } = props; if (!help) { return null; } return ( ); }