import Link from "next/link"; import { listAllLabels } from "@/lib/db/queries"; import { Tag } from "lucide-react"; export const dynamic = "force-dynamic"; export default function LabelsPage() { const items = listAllLabels(); return (

Labels

{items.length} total

{items.length === 0 ? (

No labels yet.

) : (
{items.map((label) => ( {label.name} {label.count} ))}
)}
); }