import React from 'react'; export type BadgeVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'outline' | 'default'; export interface BadgeProps { children: React.ReactNode; variant?: BadgeVariant; className?: string; icon?: React.ReactNode; } export function Badge({ children, variant = 'default', className = '', icon }: BadgeProps) { const baseClasses = "inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-[10px] font-mono font-bold uppercase tracking-wider transition-colors"; const variantClasses = { primary: "bg-primary/10 text-primary border border-primary/20", secondary: "bg-secondary/10 text-secondary border border-secondary/20", success: "bg-success/10 text-success border border-success/20", warning: "bg-warning/10 text-warning border border-warning/20", error: "bg-error/10 text-error border border-error/20", outline: "bg-transparent text-text-muted border border-border", default: "bg-surface text-text-muted border border-border/50", }; return ( {icon && {icon}} {children} ); }