import { TriangleAlert } from "lucide-react"; import Link from "next/link"; import { Button } from "@/components/ui/button"; import { tr } from "@/i18n/tr"; import { countOverdue, ensureHorizon } from "../service"; import { toObjectId } from "@/lib/object-id"; /** Dashboard: vadesi geçmiş onaylanmamış planlı işlemler uyarısı (Bölüm 6.7). */ export async function OverdueBanner({ userId, householdId, }: { userId: string; householdId: string; }) { const hid = toObjectId(householdId); if (hid) await ensureHorizon(hid); const n = await countOverdue(userId, householdId); if (!n) return null; return (