5180 fichiers 38.5 Mo 0 téléchargements 398 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / friends / views / friends-list / FriendsListRemoveConfirmationView.tsx
FriendsListRemoveConfirmationView.tsx 2.1 Ko Télécharger le fichier
import { FC } from 'react';
import { LocalizeText } from '../../../../api';
import { Button, OctaneCardContentView, OctaneCardHeaderView, OctaneCardView } from '../../../../common';
import { NativeTextTree } from '../../../../common/native-text/NativeTextTree';

interface FriendsRemoveConfirmationViewProps {
    selectedFriendsIds: number[];
    removeFriendsText: string;
    removeSelectedFriends: () => void;
    onCloseClick: () => void;
}

/**
 * AIR friend_remove_confirm: a 160 x 200 frame with the word-wrapped `friendlist.removefriendconfirm.userlist` text in a
 * bordered box, the thick OK button on the left and Cancel on the right, both 60 x 21 and grey (style 0).
 */
export const FriendsRemoveConfirmationView: FC<FriendsRemoveConfirmationViewProps> = (props) => {
    const { selectedFriendsIds = null, removeFriendsText = null, removeSelectedFriends = null, onCloseClick = null } = props;

    return (
        <NativeTextTree>
            <OctaneCardView
                className="octane-friends-remove-confirmation min-w-0 max-w-[calc(100vw-16px)] max-h-[calc(100vh-16px)]"
                theme="primary-slim"
                isResizable={false}
            >
                <OctaneCardHeaderView headerText={LocalizeText('friendlist.removefriendconfirm.title')} onCloseClick={onCloseClick} />
                <OctaneCardContentView className="octane-friends-remove-confirmation-content text-black">
                    <div className="octane-friends-remove-confirmation-text">{removeFriendsText}</div>
                    <div className="octane-friends-remove-confirmation-actions">
                        <Button className="octane-friends-remove-confirmation-ok" variant="secondary" disabled={selectedFriendsIds.length === 0} onClick={removeSelectedFriends}>
                            {LocalizeText('generic.ok')}
                        </Button>
                        <Button variant="secondary" onClick={onCloseClick}>
                            {LocalizeText('generic.cancel')}
                        </Button>
                    </div>
                </OctaneCardContentView>
            </OctaneCardView>
        </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