Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415161718192021222324 |
- // @flow
-
- /**
- * Selector to return lobby state.
- *
- * @param {any} state - State object.
- * @returns {any}
- */
- export function getLobbyState(state: any) {
- return state['features/lobby'];
- }
-
-
- /**
- * Selector to return array with knocking participant ids.
- *
- * @param {any} state - State object.
- * @returns {Array}
- */
- export function getKnockingParticipantsById(state: any) {
- const { knockingParticipants } = state['features/lobby'];
-
- return knockingParticipants.map(participant => participant.id);
- }
|