import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { TranslatableString } from '@rjsf/utils'; import { TimesCircleIcon } from 'primereact/icons/timescircle'; import { Message } from 'primereact/message'; /** The `ErrorList` component is the template that renders all the errors associated with the fields in the `Form` * * @param props - The `ErrorListProps` for this component */ export default function ErrorList({ errors, registry, }: ErrorListProps) { const { translateString } = registry; const content = (
{translateString(TranslatableString.ErrorsLabel)}
    {errors.map((error) => (
  • {error.stack}
  • ))}
); return ( ); }