import { Link } from 'react-router'; import { useTranslation } from 'react-i18next'; import { motion } from 'framer-motion'; import { GiftIcon } from '@/components/icons'; import type { PendingGift } from '../../api/gift'; interface PendingGiftCardProps { gifts: PendingGift[]; className?: string; } export default function PendingGiftCard({ gifts, className }: PendingGiftCardProps) { const { t } = useTranslation(); if (gifts.length === 0) return null; return (
{gifts.map((gift) => ( {/* Subtle glow effect */}
{/* Gift icon */}
{/* Content */}

{t('gift.pending.title')}

{gift.tariff_name && ( {gift.tariff_name} — {gift.period_days} {t('gift.days')} )} {gift.sender_display && ( {t('gift.pending.from', { sender: gift.sender_display })} )}

{gift.gift_message && (

“{gift.gift_message}”

)}
{/* Activate button */} {t('gift.pending.activate')}
))}
); }