// Gift Detail bottom-sheet — Portals-style.
function AttrRow({ label, name, rarity, isLast }) {
return (
<>
{/* Hero card — the gift's Lottie fills the card; its own backdrop colors it. */}
{/* Lottie fills the card */}
{/* Title overlay at bottom */}
{listing.name}
{listing.num != null && (
#{listing.num.toLocaleString('ru-RU')}
)}
{/* Attribute table */}
{/* View-only для своего подарка; иначе — покупка. */}
{owned ? (
{close => (
)}
) : (
<>
{/* Buy button — pill with title + price stacked, like Portals */}
{onAddToCart && (
)}
{!canAfford && (
Пополните баланс ещё на{' '}
{fmtRub(listing.rub - balance)}
{' '}в разделе Кошелёк
)}
>
)}
);
}
window.GiftDetailSheet = GiftDetailSheet;