import { Download, FileText } from "lucide-react"; import { AppraisalDecision } from "../api/types"; import { Button } from "./ui/button"; import { api } from "../api/client"; import { formatDate } from "../lib/utils"; interface Props { decisions: AppraisalDecision[]; totalInDb: number; } export function AppraisalsTable({ decisions, totalInDb }: Props) { if (!decisions.length) { return (
לא נמצאו החלטות שמאי מכריע באזור הזה
); } return (
נמצאו {decisions.length} מתוך {totalInDb.toLocaleString("he-IL")} החלטות במאגר
{decisions.map((d) => ( ))}
תאריך הכרעה שמאי מכריע ועדה גוש/חלקה סוג שומה כותרת ההחלטה PDF
{formatDate(d.decision_date)} {d.decisive_appraiser || "—"} {d.committee || "—"} {d.block ?? "—"} {d.plot ? ` / ${d.plot}` : ""} {d.appraisal_type || "—"} {d.appraisal_header || "—"} {d.pdf_url ? ( ) : ( "—" )}
); }