import { TicketStatus } from '../types' const config: Record = { OPEN: { label: 'Open', className: 'bg-blue-100 text-blue-800 border-blue-200' }, IN_PROGRESS: { label: 'In Progress', className: 'bg-yellow-100 text-yellow-800 border-yellow-200' }, RESOLVED: { label: 'Resolved', className: 'bg-green-100 text-green-800 border-green-200' }, CLOSED: { label: 'Closed', className: 'bg-gray-100 text-gray-500 border-gray-200' }, } export default function StatusBadge({ status }: { status: TicketStatus }) { const { label, className } = config[status] return ( {label} ) }