"use client"; import { Button } from "@/components/ui/button"; import { CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { DashboardCard } from "@/components/dashboard-card"; import { ArrowRightIcon } from "@/components/ui/phosphor-icons"; import type { HouseholdRow } from "@/lib/poverty-types"; interface RecentHouseholdsProps { households: HouseholdRow[]; } export function RecentHouseholds({ households }: RecentHouseholdsProps) { return ( Pendataan Terbaru Warga terbaru yang masuk basis data kemiskinan. {households.length === 0 ? (
Belum ada data warga.
) : ( Warga terbaru dengan nama kepala keluarga, prioritas, dan penghasilan. Kepala Keluarga Prioritas Penghasilan {households.map((h) => ( {h.head_name} {h.fuzzy_label ?? h.poverty_level} Rp {h.penghasilan.toLocaleString("id-ID")} ))}
)}
); }