5180 fichiers 38.5 Mo 0 téléchargements 474 vues mis à jour il y a 7 heures ui
NotificationItemLayoutView.tsx 1.1 Ko Télécharger le fichier
import { FC, PropsWithChildren } from 'react';
import { LayoutNotificationBubbleView, LayoutNotificationBubbleViewProps } from '../../../../common';
import { NativeTextTree } from '../../../../common/native-text/NativeTextTree';

interface NotificationItemLayoutViewProps extends LayoutNotificationBubbleViewProps {
    iconUrl?: string;
}

/* Official layout_notification: 190 wide, 50x50 icon at 8,8 and the text beside it,
   on the black border skin. The box grows with the text, never below 66. */
export const NotificationItemLayoutView: FC<PropsWithChildren<NotificationItemLayoutViewProps>> = (props) => {
    const { iconUrl = null, children = null, classNames = [], ...rest } = props;

    return (
        <NativeTextTree>
            <LayoutNotificationBubbleView classNames={['octane-notification-item', ...classNames]} {...rest}>
                <div className="octane-notification-item__icon">{iconUrl && <img alt="" className="no-select" src={iconUrl} draggable={false} />}</div>
                <div className="octane-notification-item__text">{children}</div>
            </LayoutNotificationBubbleView>
        </NativeTextTree>
    );
};
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