"use client"; import { useI18n } from "@/lib/i18n/useI18n"; type Props = { oeeAvg: number | null; goodParts: number; totalStops: number; scrapParts: number; }; export default function RecapKpiRow({ oeeAvg, goodParts, totalStops, scrapParts }: Props) { const { t } = useI18n(); const items = [ { label: t("recap.kpi.good"), value: String(goodParts), valueClass: "text-white" }, { label: t("recap.kpi.stops"), value: String(totalStops), valueClass: totalStops > 0 ? "text-amber-300" : "text-white" }, { label: t("recap.kpi.scrap"), value: String(scrapParts), valueClass: scrapParts > 0 ? "text-red-300" : "text-white" }, ]; return (