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