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

14 lines
307 B
TypeScript

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