"use client"; import { Download } from "lucide-react"; import { GlassPanel } from "@/components/primitives"; import { SectionHeader } from "@/components/shared"; import { downloadCsv } from "@/lib/csv"; import { formatNumber } from "@/lib/format"; import type { FlaggedDomain } from "@/lib/types"; export function ScamDomains({ domains }: { domains: FlaggedDomain[] }) { const max = domains.reduce((m, d) => Math.max(m, d.count), 0); return ( 0 ? ( ) : null } /> {domains.length === 0 ? (

No flagged links captured recently.

) : (
{domains.map((d) => { const pct = max > 0 ? Math.max(2, (d.count / max) * 100) : 0; return (
{d.domain}
{formatNumber(d.count)}
); })}
)} ); }