'use client' import { cn } from '@/lib/utils' import { CampaignType } from '@/lib/types' import { Trophy, Gift, Ticket, Percent } from 'lucide-react' const cfg: Record = { leaderboard: { label: 'Leaderboard', icon: Trophy, color: 'text-brand-yellow', bg: 'bg-brand-yellow/10' }, gift: { label: 'Gift', icon: Gift, color: 'text-brand-turquoise', bg: 'bg-brand-turquoise/10' }, raffle: { label: 'Raffle', icon: Ticket, color: 'text-[#a78bfa]', bg: 'bg-[#a78bfa]/10' }, rebate: { label: 'Rebate', icon: Percent, color: 'text-trading-up', bg: 'bg-trading-up/10' }, } export function CampaignBadge({ type }: { type: CampaignType }) { const c = cfg[type]; const Icon = c.icon return (
{c.label}
) }