Files
karakeep-mirror/apps/web/lib/clientConfig.tsx
Mohamed Bassem 9695bba2e9 feat: Generate RSS feeds from lists (#1507)
* 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
2025-05-31 18:46:04 +01:00

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);
}