aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/lib/clientConfig.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/lib/clientConfig.tsx')
-rw-r--r--apps/web/lib/clientConfig.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/web/lib/clientConfig.tsx b/apps/web/lib/clientConfig.tsx
new file mode 100644
index 00000000..fac76d3b
--- /dev/null
+++ b/apps/web/lib/clientConfig.tsx
@@ -0,0 +1,11 @@
+import { createContext, useContext } from "react";
+
+import type { ClientConfig } from "@hoarder/shared/config";
+
+export const ClientConfigCtx = createContext<ClientConfig>({
+ demoMode: false,
+});
+
+export function useClientConfig() {
+ return useContext(ClientConfigCtx);
+}