import { Badge, Group, Paper, Progress, Stack, Text, ThemeIcon } from "@mantine/core"; import type { LucideIcon } from "lucide-react"; import { CheckCircle2, Container, LayoutGrid, Link2, Package, } from "lucide-react"; const stepIcons: Record = { package: Package, layout: LayoutGrid, container: Container, link: Link2, check: CheckCircle2, }; export function SchedulingWorkflowHeader({ title, subtitle, activeStep, totalSteps, stepLabel, stepDescription, stepIcon = "package", }: { title: string; subtitle?: string; activeStep: number; totalSteps: number; stepLabel: string; stepDescription?: string; stepIcon?: keyof typeof stepIcons; }) { const Icon = stepIcons[stepIcon] ?? Package; const progress = totalSteps > 0 ? Math.round(((activeStep + 1) / totalSteps) * 100) : 0; return ( {title} {subtitle ? ( {subtitle} ) : null} Step {activeStep + 1} of {totalSteps} {stepLabel} {stepDescription ? ( {" "} ยท {stepDescription} ) : null} {progress}% ); }