blob: 313951990ceefc7fcc7dc38672db3ca9823b7628 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { createContext, useContext } from "react";
import type { ClientConfig } from "@hoarder/shared/config";
export const ClientConfigCtx = createContext<ClientConfig>({
demoMode: undefined,
auth: {
disableSignups: false,
},
inference: {
inferredTagLang: "english",
},
serverVersion: undefined,
disableNewReleaseCheck: true,
});
export function useClientConfig() {
return useContext(ClientConfigCtx);
}
|