theluyuan 38ba663466
Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
init
2025-09-02 14:49:16 +08:00

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;
}