"use client"; import { useI18n } from "@/lib/i18n/useI18n"; import type { RecapSkuRow } from "@/lib/recap/types"; type Props = { rows: RecapSkuRow[]; }; export default function RecapProductionBySku({ rows }: Props) { const { t } = useI18n(); return (
{t("recap.production.bySku")}
{rows.length === 0 ? (
{t("recap.empty.production")}
) : (
{rows.slice(0, 10).map((row) => ( ))}
{t("recap.production.sku")} {t("recap.production.good")} {t("recap.production.scrap")}
{row.sku} {row.good} 0 ? "text-red-300" : ""}`}>{row.scrap}
)}
); }