5180 fichiers 38.5 Mo 0 téléchargements 211 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / hooks / session / usePlayTestRestricted.ts
usePlayTestRestricted.ts 489 o Télécharger le fichier
import { IsPlayTestRestricted } from '../../api';
import { useActiveRoomSessionSnapshot } from './useSessionSnapshots';

/**
 * `IsPlayTestRestricted` for a view: the active room session's snapshot is refreshed when playtest is
 * switched, so a button that disables itself in playtest follows the switch at once.
 */
export const usePlayTestRestricted = (): boolean => {
    const snapshot = useActiveRoomSessionSnapshot();

    return IsPlayTestRestricted(snapshot?.session ?? null);
};
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