"use client" import { AlertCircle } from 'lucide-react'; import React from 'react'; import { Alert, AlertDescription, AlertTitle } from '@djangocfg/ui-core/components'; import { useAppT } from '@djangocfg/i18n'; import { ErrorListProps } from '@rjsf/utils'; /** * Error list template for JSON Schema Form * Displays validation errors at the top of the form */ export function ErrorListTemplate(props: ErrorListProps) { const { errors } = props; const t = useAppT(); if (!errors || errors.length === 0) { return null; } return ( {t('tools.jsonForm.validationErrors')}
    {errors.map((error, index) => (
  • {error.stack}
  • ))}
); }