You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

selectors.ts 307B

12345678910111213
  1. import { IReduxState } from '../../app/types';
  2. import { STORE_NAME } from './constants';
  3. /**
  4. * A selector for the internet online status.
  5. *
  6. * @param {IReduxState} state - The redux state.
  7. * @returns {boolean}
  8. */
  9. export function isOnline(state: IReduxState) {
  10. return state[STORE_NAME].isOnline;
  11. }