import Link from "next/link";
import type { Cluster, EventItem, TrendingItem } from "@/lib/api";
import { fmtOffset, fmtScore, relTime } from "@/lib/format";
import { Badge, Chip, Empty, Mark, Panel, Score, StateLabelText } from "./ui";
export function TrendingPanel({ items, title = "Trending entities", hours = 24 }: { items: TrendingItem[]; title?: string; hours?: number }) {
return (
all →}>
{items.length === 0 ? (
Trending is computed from the last {hours} h of events.
) : (
{items.map((t, i) => (