import type { ReactNode } from "react"; import { AlertTriangle, Info } from "lucide-react"; import { cx } from "../../lib/cx.js"; export function Card({ children, className }: { children: ReactNode; className?: string }) { return
{children}
; } export function CardHeader({ title, description, actions }: { title: ReactNode; description?: ReactNode; actions?: ReactNode }) { return (

{title}

{description &&

{description}

}
{actions &&
{actions}
}
); } export function CardBody({ children, className }: { children: ReactNode; className?: string }) { return
{children}
; } export function CardFooter({ children, className }: { children: ReactNode; className?: string }) { return (
{children}
); } type Tone = "neutral" | "accent" | "warning" | "danger" | "success"; const badgeTones: Record = { neutral: "bg-surface-2 text-muted", accent: "bg-accent-soft text-accent-soft-fg", warning: "bg-warning-soft text-warning-soft-fg", danger: "bg-danger-soft text-danger-soft-fg", success: "bg-success/10 text-success", }; export function Badge({ tone = "neutral", children, icon }: { tone?: Tone; children: ReactNode; icon?: ReactNode }) { return ( {icon} {children} ); } export function Alert({ tone = "warning", title, children }: { tone?: "warning" | "info"; title: string; children?: ReactNode }) { const Icon = tone === "warning" ? AlertTriangle : Info; return (

{title}

{children &&
{children}
}
); } export function EmptyState({ icon, title, description, action }: { icon: ReactNode; title: string; description?: string; action?: ReactNode }) { return (
{icon}

{title}

{description &&

{description}

} {action &&
{action}
}
); } export function Skeleton({ className }: { className?: string }) { return
; } export function PageHeader({ title, description, actions, breadcrumb, }: { title: ReactNode; description?: ReactNode; actions?: ReactNode; breadcrumb?: ReactNode; }) { return (
{breadcrumb &&
{breadcrumb}
}

{title}

{description &&

{description}

}
{actions &&
{actions}
}
); }