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

14 lines
307 B
TypeScript
Raw Normal View History

import { IReduxState } from '../../app/types';
2020-03-30 13:50:26 +00:00
import { STORE_NAME } from './constants';
/**
* A selector for the internet online status.
*
* @param {IReduxState} state - The redux state.
2020-03-30 13:50:26 +00:00
* @returns {boolean}
*/
export function isOnline(state: IReduxState) {
2020-03-30 13:50:26 +00:00
return state[STORE_NAME].isOnline;
}