5180 fichiers 38.5 Mo 0 téléchargements 259 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / common / layout / LayoutTrophyView.tsx
LayoutTrophyView.tsx 1.5 Ko Télécharger le fichier
import { FC } from 'react';
import { LocalizeText } from '../../api';
import { Base } from '../Base';
import { Column } from '../Column';
import { DraggableWindow } from '../draggable-window';
import { Flex } from '../Flex';
import { Text } from '../Text';

interface LayoutTrophyViewProps {
    color: string;
    message: string;
    date: string;
    senderName: string;
    customTitle?: string;
    onCloseClick: () => void;
}

export const LayoutTrophyView: FC<LayoutTrophyViewProps> = (props) => {
    const { color = '', message = '', date = '', senderName = '', customTitle = null, onCloseClick = null } = props;

    return (
        <DraggableWindow handleSelector=".drag-handler">
            <Column alignItems="center" className={`octane-layout-trophy trophy-${color}`} gap={0}>
                <Flex center fullWidth className="trophy-header drag-handler" position="relative">
                    <Base pointer className="trophy-close" position="absolute" onClick={onCloseClick} />
                    <Text bold>{LocalizeText('widget.furni.trophy.title')}</Text>
                </Flex>
                <Column className="trophy-content py-1" gap={1}>
                    {customTitle && <Text bold>{customTitle}</Text>}
                    {message}
                </Column>
                <Flex alignItems="center" className="trophy-footer mt-1" justifyContent="between">
                    <Text bold>{date}</Text>
                    <Text bold>{senderName}</Text>
                </Flex>
            </Column>
        </DraggableWindow>
    );
};
15Sujets
1Dépôts
20Membres
2En 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