diff --git a/src/lib/config/clientRegistry.ts b/src/lib/config/clientRegistry.ts new file mode 100644 index 0000000..8a63bd7 --- /dev/null +++ b/src/lib/config/clientRegistry.ts @@ -0,0 +1,13 @@ +"use client" + +const getClientConfig = (key: string, defaultVal?: any) => { + return localStorage.getItem(key) ?? defaultVal ?? undefined +} + +export const getTheme = () => getClientConfig('theme', 'dark') + +export const getAutoImageSearch = () => Boolean(getClientConfig('autoImageSearch', 'true')) + +export const getAutoVideoSearch = () => Boolean(getClientConfig('autoVideoSearch', 'true')) + +export const getSystemInstructions = () => getClientConfig('systemInstructions', '') \ No newline at end of file diff --git a/src/lib/config/serverRegistry.ts b/src/lib/config/serverRegistry.ts new file mode 100644 index 0000000..6cdbbd6 --- /dev/null +++ b/src/lib/config/serverRegistry.ts @@ -0,0 +1 @@ +/* TODO: add server opts */ \ No newline at end of file