import processingStepsStyles from "~/styles/components/processing-steps.css?url"; export interface Step { title: string; description: string; status: 'waiting' | 'active' | 'done' | 'error'; } interface ProcessingStepsProps { steps: Step[]; className?: string; } export function links() { return [{ rel: "stylesheet", href: processingStepsStyles }]; } export function ProcessingSteps({ steps, className = "" }: ProcessingStepsProps) { return (
{steps.map((step, index) => (
{step.status === 'done' && } {step.status === 'error' && } {step.status === 'active' && } {step.status === 'waiting' && {index + 1}}
{step.title}
{step.description}
))}
); }