24 lines
556 B
TypeScript
24 lines
556 B
TypeScript
'use client';
|
|
|
|
import { Badge } from '@/ui/Badge';
|
|
import React from 'react';
|
|
|
|
interface SponsorshipTierBadgeProps {
|
|
tier: 'premium' | 'standard' | 'starter';
|
|
entityLabel: string;
|
|
}
|
|
|
|
export function SponsorshipTierBadge({ tier, entityLabel }: SponsorshipTierBadgeProps) {
|
|
const variants: Record<string, 'warning' | 'primary' | 'info'> = {
|
|
premium: 'warning',
|
|
standard: 'primary',
|
|
starter: 'info',
|
|
};
|
|
|
|
return (
|
|
<Badge variant={variants[tier]}>
|
|
{tier.charAt(0).toUpperCase() + tier.slice(1)} {entityLabel}
|
|
</Badge>
|
|
);
|
|
}
|