import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { TranslatableString } from '@rjsf/utils'; import Card from 'react-bootstrap/Card'; import ListGroup from 'react-bootstrap/ListGroup'; export default function ErrorList({ errors, registry, }: ErrorListProps) { const { translateString } = registry; return ( {translateString(TranslatableString.ErrorsLabel)} {errors.map((error, i: number) => ( // oxlint-disable-next-line react/no-array-index-key {error.stack} ))} ); }