import type { CyclicSchemaExpandProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { ID_KEY, TranslatableString } from '@rjsf/utils'; import { Button } from 'semantic-ui-react'; /** The `CyclicSchemaExpandTemplate` is the template to use to render the cyclic schema expand message and controls * * @param props - The `CyclicSchemaExpandProps` for this component */ export default function CyclicSchemaExpandTemplate< T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any, >(props: CyclicSchemaExpandProps) { const { name, fieldPathId, registry, onExpand } = props; const { translateString } = registry; const buttonId = `${fieldPathId[ID_KEY]}-button`; return (

{translateString(TranslatableString.CycleDetected, [name])}

); }