import { clsx } from 'clsx'; import { type ReactNode } from 'react'; export type BadgeVariant = 'sale' | 'discount' | 'info'; export interface BadgeProps { variant?: BadgeVariant; children: ReactNode; className?: string; } const variantStyles: Record = { sale: 'bg-red-500 text-white', discount: 'bg-transparent text-green-600 font-semibold', info: 'bg-gray-100 text-gray-700', }; export function Badge({ variant = 'info', children, className }: BadgeProps) { return ( {children} ); } export default Badge;