import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/app/components/ui"; import type { TranslateFunction } from "@/lib/i18n/dictionaries"; interface JobError { id: string; file_path: string; error_message: string; created_at: string; } export function JobErrorsCard({ errors, t, locale }: { errors: JobError[]; t: TranslateFunction; locale: string }) { if (errors.length === 0) return null; return ( {t("jobDetail.fileErrors", { count: String(errors.length) })} {t("jobDetail.fileErrorsDesc")} {errors.map((error) => (
{error.file_path}

{error.error_message}

{new Date(error.created_at).toLocaleString(locale)}
))}
); }