5180 fichiers 38.5 Mo 0 téléchargements 604 vues mis à jour il y a 12 heures ui
InfoStandHeaderView.tsx 1.2 Ko Télécharger le fichier
import { FC } from 'react';
import { LocalizeText } from '../../../../../api';
import { BaseButton } from '../../../../../common/BaseButton';
import { NativeTextTree } from '../../../../../common/native-text/NativeTextTree';
import { Hint } from '../../../../../common/Tooltip';

interface InfoStandHeaderViewProps {
    name: string;
    onClose: () => void;
}

/**
 * The name line and close button of the pet and bot infostands, drawn like the
 * user infostand's: the name in the Volter identity style and the skin's close
 * button in the corner.
 */
export const InfoStandHeaderView: FC<InfoStandHeaderViewProps> = ({ name, onClose }) => (
    <NativeTextTree>
        <>
            <Hint content={LocalizeText('generic.close')}>
                <BaseButton
                    type="button"
                    className="octane-infostand__close"
                    aria-label={LocalizeText('generic.close')}
                    onClick={onClose}
                />
            </Hint>
            <div className="octane-infostand__header">
                <span className="octane-infostand__identity">{name}</span>
            </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