{statusStrings[status]}
--- import { Check, Lightbulb, Clock, type Icon as IconType } from "@lucide/astro"; const statusStrings = { planned: "Planned", "in-progress": "In Progress", complete: "Complete", } as const; interface Props { title: string; icon: typeof IconType; status?: "planned" | "in-progress" | "complete"; } const { title, icon: Icon, status = "planned" } = Astro.props; let StatusIcon: typeof IconType; switch (status) { case "planned": StatusIcon = Lightbulb; break; case "in-progress": StatusIcon = Clock; break; case "complete": StatusIcon = Check; break; } ---
{statusStrings[status]}