'use client' import * as React from 'react' export interface StageBadgeConfig { label: string className: string } export interface StageBadgeProps { stage: string configMap: Record className?: string } const DEFAULT_CONFIG: StageBadgeConfig = { label: '', className: 'bg-gray-100 text-gray-700 border-gray-200', } export function StageBadge({ stage, configMap, className = '' }: StageBadgeProps) { const config = configMap[stage] ?? { ...DEFAULT_CONFIG, label: stage } return ( {config.label} ) }