"use client";
import Link from "next/link";
import { AppShell } from "@/components/app-shell";
import { Card, CardContent } from "@/components/ui/card";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Badge } from "@/components/ui/badge";
import { DigestListPanel } from "@/components/digests/digest-list-panel";
import { DigestSearchPanel } from "@/components/digests/digest-search-panel";
import { useDigestPending } from "@/lib/api/digests";
/**
* Digests radar page (X12) — a SECONDARY discovery layer ABOVE the citation
* corpora. Deliberately a SEPARATE page from /precedents to keep the
* authoritative/secondary boundary visible: a digest POINTS at a ruling, it is
* never cited in a decision (INV-DIG1) and never extracts halachot (INV-DIG2).
*
* Two tabs:
* - יומונים — browse + upload + link to the underlying ruling
* - חיפוש — semantic radar search
*/
function PendingBadge() {
const { data } = useDigestPending();
const n = data?.count ?? 0;
if (!n) return null;
return (
{n} ממתינים
);
}
export default function DigestsPage() {
return (
יומונים — רדאר פסיקה
סיכומי "כל יום" (עפר טויסטר) של פסקי דין והחלטות עדכניים.
שכבת-גילוי בלבד: כל יומון מצביע על פסק הדין המקורי —
הוא אינו מצוטט בהחלטה ואינו מחלץ הלכות. כשהפסק רלוונטי, מעלים אותו
לספריית הפסיקה ומצטטים משם.