5180 fichiers 38.5 Mo 0 téléchargements 234 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / common / layout / LayoutChatStyleImageView.tsx
LayoutChatStyleImageView.tsx 839 o Télécharger le fichier
import { FC } from 'react';

export interface LayoutChatStyleImageViewProps {
    styleId: number | string;
    className?: string;
}

/**
 * A chat bubble style drawn as the chat-style selector draws it: an empty bubble of that
 * style. AIR uses the same picture (chatStyleLibrary style preview) for chat_style catalog
 * products, the purchase confirmation and recycler rewards.
 */
export const LayoutChatStyleImageView: FC<LayoutChatStyleImageViewProps> = (props) => {
    const { styleId = 0, className = '' } = props;
    const id = Number(styleId);

    if (!Number.isFinite(id) || id < 0) return null;

    return (
        <span aria-hidden="true" className={`octane-chat-style-image bubble-container ${className}`.trim()} data-style-id={id}>
            <span className={`chat-bubble bubble-${id}`} />
        </span>
    );
};
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