"use client"; import { useMemo } from "react"; import Link from "next/link"; import { AppShell } from "@/components/app-shell"; import { KPICards } from "@/components/cases/kpi-cards"; import { StatusDonut } from "@/components/cases/status-donut"; import { AppealTypeBars, subtypeOf } from "@/components/cases/appeal-type-bars"; import { CasesTable } from "@/components/cases/cases-table"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { useCases, type Case } from "@/lib/api/cases"; export default function HomePage() { const { data, isPending, error } = useCases(true); const { permits, levies } = useMemo(() => { const permits: Case[] = []; const levies: Case[] = []; (data ?? []).forEach((c) => { const s = subtypeOf(c); if (s === "building_permit") permits.push(c); else if (s === "betterment_levy" || s === "compensation_197") levies.push(c); else permits.push(c); // fallback bucket — keep visible }); return { permits, levies }; }, [data]); return (
ועדת ערר לתכנון ובנייה · ירושלים

עוזר משפטי

לוח בקרה לניהול תיקי ערר, ניתוח סגנון, וכתיבת החלטות לפי ארכיטקטורת 12 הבלוקים.

רישוי ובנייה

עררים 1xxx
מעודכן חי

היטל השבחה ופיצויים

עררים 8xxx · 9xxx
מעודכן חי
); }