5180 fichiers 38.5 Mo 0 téléchargements 484 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / room / widgets / furniture / FurnitureTrophyView.tsx
FurnitureTrophyView.tsx 956 o Télécharger le fichier
import { FC } from 'react';
import { LayoutTrophyView } from '../../../../common';
import { TROPHY_VIEW_NIKO_GOLD, TROPHY_VIEW_NIKO_SILVER, useFurnitureTrophyWidget } from '../../../../hooks';
import { FurnitureNikoTrophyView } from './FurnitureNikoTrophyView';
import '../../../../css/room/FurniWindowsAAir.css';

/** Official `TrophyFurniWidget.updateInterface`: the Niko views open `NikoTrophyView`, everything else the trophy card. */
export const FurnitureTrophyView: FC<{}> = (props) => {
    const { objectId = -1, color = '1', senderName = '', date = '', message = '', view = 0, onClose = null } = useFurnitureTrophyWidget();

    if (objectId === -1) return null;

    if (view === TROPHY_VIEW_NIKO_GOLD || view === TROPHY_VIEW_NIKO_SILVER) return <FurnitureNikoTrophyView date={date} view={view} onClose={onClose} />;

    return <LayoutTrophyView color={color} date={date} message={message} senderName={senderName} onCloseClick={onClose} />;
};
15Sujets
1Dépôts
20Membres
3En 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