From 64fb87d0ceb591a49aacad39bf5e885cab7decfa Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 19 Mar 2024 12:41:06 +0000 Subject: feature(web): Add support for demo mode --- apps/web/lib/clientConfig.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/web/lib/clientConfig.tsx (limited to 'apps/web/lib/clientConfig.tsx') 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({ + demoMode: false, +}); + +export function useClientConfig() { + return useContext(ClientConfigCtx); +} -- cgit v1.2.3-70-g09d2