import React from 'react'; import { Trophy, Users, Car, Flag, Megaphone, LucideIcon } from 'lucide-react'; import { Button } from '@/ui/Button'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; interface RenewalAlertProps { renewal: { id: string; type: 'league' | 'team' | 'driver' | 'race' | 'platform'; name: string; formattedRenewDate: string; formattedPrice: string; }; } export function RenewalAlert({ renewal }: RenewalAlertProps) { const typeIcons: Record = { league: Trophy, team: Users, driver: Car, race: Flag, platform: Megaphone, }; const Icon = typeIcons[renewal.type] || Trophy; return ( {renewal.name} Renews {renewal.formattedRenewDate} {renewal.formattedPrice} ); }