jiti-meet/react/features/base/net-info/selectors.js

12 lines
241 B
JavaScript

import { STORE_NAME } from './constants';
/**
* A selector for the internet online status.
*
* @param {Object} state - The redux state.
* @returns {boolean}
*/
export function isOnline(state) {
return state[STORE_NAME].isOnline;
}