import Link from "next/link"; import type { ReactNode } from "react"; export function Section({ title, action, children, className = "" }: { title: ReactNode; action?: { href: string; label: string }; children: ReactNode; className?: string }) { return (

{title}

{action && {action.label} →}
{children}
); } export function Stat({ label, value, sub, tone }: { label: string; value: ReactNode; sub?: ReactNode; tone?: "good" | "warn" | "info" }) { const c = tone === "good" ? "text-good" : tone === "warn" ? "text-warn" : tone === "info" ? "text-info" : "text-ink"; return (

{label}

{value}

{sub &&

{sub}

}
); } export function Empty({ title, hint, action }: { title: string; hint?: string; action?: { href: string; label: string } }) { return (

{title}

{hint &&

{hint}

}{action && {action.label}}
); } export function Notice({ children, tone = "info" }: { children: ReactNode; tone?: "info" | "warn" }) { return

{children}

; } export function Tabs({ items, current, onChange }: { items: { id: string; label: string }[]; current: string; onChange: (id: string) => void }) { return (
{items.map((t) => )}
); }