mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-12-05 22:14:24 +01:00
* refactor: Move bookmark utils from shared-react to shared * Expose RSS feeds for lists * Add e2e tests * Slightly improve the look of the share dialog * allow specifying a limit in the rss endpoint
24 lines
527 B
TypeScript
24 lines
527 B
TypeScript
import { createContext, useContext } from "react";
|
|
|
|
import type { ClientConfig } from "@karakeep/shared/config";
|
|
|
|
export const ClientConfigCtx = createContext<ClientConfig>({
|
|
publicUrl: "",
|
|
publicApiUrl: "",
|
|
demoMode: undefined,
|
|
auth: {
|
|
disableSignups: false,
|
|
disablePasswordAuth: false,
|
|
},
|
|
inference: {
|
|
isConfigured: false,
|
|
inferredTagLang: "english",
|
|
},
|
|
serverVersion: undefined,
|
|
disableNewReleaseCheck: true,
|
|
});
|
|
|
|
export function useClientConfig() {
|
|
return useContext(ClientConfigCtx);
|
|
}
|