import Alert from 'antd/lib/alert'; import List from 'antd/lib/list'; import Space from 'antd/lib/space'; import ExclamationCircleOutlined from '@ant-design/icons/ExclamationCircleOutlined'; import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, 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; const renderErrors = () => ( {errors.map((error, index) => ( {error.stack} ))} ); return ( ); }