blob: d63b169c7f17c99ef2158bea8de86480e7fa6581 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { createContext, useContext } from "react";
import type { ClientConfig } from "@hoarder/shared/config";
export const ClientConfigCtx = createContext<ClientConfig>({
demoMode: undefined,
auth: {
disableSignups: false,
},
});
export function useClientConfig() {
return useContext(ClientConfigCtx);
}
|