import { AlertCircle } from "lucide-react"; type DatasetError = { datasetId: string; datasetName: string; field: "input" | "expectedOutput"; errors: Array<{ path: string; message: string; }>; }; type DatasetItemFieldSchemaErrorsProps = { errors: DatasetError[]; showDatasetName?: boolean; }; export const DatasetItemFieldSchemaErrors: React.FC< DatasetItemFieldSchemaErrorsProps > = ({ errors, showDatasetName = false }) => { if (errors.length === 0) return null; return (
Schema validation failed
{errors.map((error, idx) => ({error.datasetName}
)}