5180 fichiers 38.5 Mo 0 téléchargements 535 vues mis à jour il y a 8 heures ui
nitro-v36-with-renderer-v36 / src / components / catalog / views / page / widgets / CatalogClubUpgradeButton.tsx
CatalogClubUpgradeButton.tsx 1.2 Ko Télécharger le fichier
import { CreateLinkEvent } from '@octane/renderer';
import { FC } from 'react';
import { LocalizeText } from '../../../../../api';
import { BaseButton } from '../../../../../common/BaseButton';
import { NativeTextTree } from '../../../../../common/native-text/NativeTextTree';

interface CatalogClubUpgradeButtonProps {
    onOpenClubCenter?: () => void;
}

// Replaces the purchase buttons of an offer the player's club level does not unlock: a short
// explanation and one button that opens the club centre.
export const CatalogClubUpgradeButton: FC<CatalogClubUpgradeButtonProps> = ({ onOpenClubCenter = () => CreateLinkEvent('habboUI/open/hccenter') }) => (
    <NativeTextTree>
        <div className="octane-catalog-club-upgrade flex min-w-0 grow items-center justify-end gap-2">
            <span className="octane-catalog-club-upgrade-caption min-w-0 truncate">
                {LocalizeText('catalog.buy.widget.get.vip.to.unlock.this.product')}
            </span>
            <BaseButton className="octane-catalog-standard-button octane-catalog-club-upgrade-button shrink-0" type="button" onClick={onOpenClubCenter}>
                {LocalizeText('catalog.buy.widget.get.vip.button')}
            </BaseButton>
        </div>
    </NativeTextTree>
);
15Sujets
1Dépôts
20Membres
4En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser