import { Link } from "react-router-dom"; import { ArrowRight01Icon, Link01Icon, Settings02Icon, } from "@hugeicons/core-free-icons"; import type { IconSvgElement } from "@hugeicons/react"; import { Icon } from "@/components/icon"; import { cn } from "@/lib/utils"; export type ModuleStatus = "todo" | "progress" | "done"; const statusStyles: Record< ModuleStatus, { dot: string; badge: string; label: string } > = { todo: { dot: "bg-rose-500", badge: "bg-rose-500/15 text-rose-400", label: "Needs setup", }, progress: { dot: "bg-amber-400", badge: "bg-amber-500/15 text-amber-400", label: "In progress", }, done: { dot: "bg-sky-400", badge: "bg-sky-500/15 text-sky-400", label: "Active", }, }; interface ModuleStripCardProps { title: string; subtitle: string; icon: IconSvgElement; href: string; status: ModuleStatus; meta?: string; } export function ModuleStripCard({ title, subtitle, icon, href, status, meta = "Open in dashboard", }: ModuleStripCardProps) { const s = statusStyles[status]; return (
{subtitle}

{title}

{s.label}
{meta}
); }