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

12 lines
241 B
JavaScript
Raw Normal View History

2020-03-30 13:50:26 +00:00
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;
}