import { cn } from "~/utils/cn"; type Props = { status: number; title: string; description: React.ReactNode; /** A git-style output line shown above the status, e.g. `fatal: couldn't find remote ref`. */ command: string; /** Extra technical context (e.g. the server's message). */ detail?: string | null; actions: React.ReactNode; tone?: "accent" | "danger"; }; /** A branch that leaves main and ends at a dashed, detached commit — the visual for every error page. */ function DetachedBranch({ tone }: { tone: "accent" | "danger" }) { const stroke = tone === "danger" ? "stroke-danger-400" : "stroke-accent-500"; return ( ); } export function ErrorScreen({ status, title, description, command, detail, actions, tone = "accent" }: Props) { return (
{status} {command}
{detail}
)}