Change server reachability #202

This commit is contained in:
Prayag Prajapati committed 2023-10-27 19:38:43 +05:30
1 parent 09bcee155c
commit aa47e2fda5
6 files changed
+90 -53

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
/** @format */
import { create } from "zustand";
export const useServerStore = create(() => ({
reachable: true,
}));
export const setServerReachability = (reach) =>
useServerStore.setState(() => ({ reachable: reach }));