import type { ErrorListProps, FormContextType, RJSFValidationError, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { TranslatableString } from '@rjsf/utils'; /** The `ErrorList` component is the template that renders the 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; return (

{translateString(TranslatableString.ErrorsLabel)}

    {errors.map((error: RJSFValidationError, i: number) => ( // oxlint-disable-next-line react/no-array-index-key
  • {error.stack}
  • ))}
); }