1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.offlineCase = exports.onlineCase = exports.startClientNavigationCase = void 0;
|
7 |
|
8 | var _actions = require("./actions");
|
9 |
|
10 | var _envReductions = require("./env-reductions");
|
11 |
|
12 |
|
13 | var startClientNavigationCase = function startClientNavigationCase(envState, payload) {
|
14 | return [_actions.SHARYN_START_CLIENT_NAVIGATION, function () {
|
15 | return (0, _envReductions.disableIsServerRender)(envState);
|
16 | }];
|
17 | };
|
18 |
|
19 |
|
20 | exports.startClientNavigationCase = startClientNavigationCase;
|
21 |
|
22 | var onlineCase = function onlineCase(envState, payload) {
|
23 | return [_actions.SHARYN_ONLINE, function () {
|
24 | return (0, _envReductions.setIsOnline)(envState, true);
|
25 | }];
|
26 | };
|
27 |
|
28 |
|
29 | exports.onlineCase = onlineCase;
|
30 |
|
31 | var offlineCase = function offlineCase(envState, payload) {
|
32 | return [_actions.SHARYN_OFFLINE, function () {
|
33 | return (0, _envReductions.setIsOnline)(envState, false);
|
34 | }];
|
35 | };
|
36 |
|
37 | exports.offlineCase = offlineCase; |
\ | No newline at end of file |