diff --git a/electron/servers/nextjs/app/(presentation-generator)/(dashboard)/Components/DashboardSidebar.tsx b/electron/servers/nextjs/app/(presentation-generator)/(dashboard)/Components/DashboardSidebar.tsx
index bc1c6f50..1e0fbf9f 100644
--- a/electron/servers/nextjs/app/(presentation-generator)/(dashboard)/Components/DashboardSidebar.tsx
+++ b/electron/servers/nextjs/app/(presentation-generator)/(dashboard)/Components/DashboardSidebar.tsx
@@ -6,6 +6,9 @@ import { usePathname } from "next/navigation";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { trackEvent, MixpanelEvent } from "@/utils/mixpanel";
+import { useSelector } from "react-redux";
+import { RootState } from "@/store/store";
+import { IMAGE_PROVIDERS, LLM_PROVIDERS } from "@/utils/providerConstants";
@@ -28,6 +31,10 @@ const DashboardSidebar = () => {
const activeTab = pathname.split("?")[0].split("/").pop();
const router = useRouter();
+ const { llm_config } = useSelector((state: RootState) => state.userConfig)
+ const textProviderIcon = LLM_PROVIDERS[llm_config.LLM as keyof typeof LLM_PROVIDERS]?.icon
+ const imageProviderIcon = IMAGE_PROVIDERS[llm_config.IMAGE_PROVIDER as keyof typeof IMAGE_PROVIDERS]?.icon || '/providers/pexel.png'
+
@@ -114,7 +121,10 @@ const DashboardSidebar = () => {
aria-label={itemLabel}
title={itemLabel}
>
-
When enabled, Presenton collects anonymous usage data to help us - understand how the app is used and improve your experience. No - personal information or presentation content is ever collected. + understand how the app is used and improve your experience. No + personal information or presentation content is ever collected.
FILTER BY:
@@ -40,13 +46,13 @@ const SettingSideBar = ({ mode, setMode, selectedProvider, setSelectedProvider } diff --git a/electron/servers/nextjs/public/providers/claude-color.svg b/electron/servers/nextjs/public/providers/claude-color.svg new file mode 100644 index 00000000..62dc0db1 --- /dev/null +++ b/electron/servers/nextjs/public/providers/claude-color.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/electron/servers/nextjs/public/providers/comfyui-color.svg b/electron/servers/nextjs/public/providers/comfyui-color.svg new file mode 100644 index 00000000..554a3bb5 --- /dev/null +++ b/electron/servers/nextjs/public/providers/comfyui-color.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/electron/servers/nextjs/public/providers/gemini-color.svg b/electron/servers/nextjs/public/providers/gemini-color.svg new file mode 100644 index 00000000..f1cf3575 --- /dev/null +++ b/electron/servers/nextjs/public/providers/gemini-color.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/electron/servers/nextjs/public/providers/ollama.svg b/electron/servers/nextjs/public/providers/ollama.svg new file mode 100644 index 00000000..cc887e3d --- /dev/null +++ b/electron/servers/nextjs/public/providers/ollama.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/electron/servers/nextjs/public/providers/image-provider.png b/electron/servers/nextjs/public/providers/pexel.png similarity index 100% rename from electron/servers/nextjs/public/providers/image-provider.png rename to electron/servers/nextjs/public/providers/pexel.png diff --git a/electron/servers/nextjs/public/providers/pixabay.png b/electron/servers/nextjs/public/providers/pixabay.png new file mode 100644 index 00000000..c1962f58 Binary files /dev/null and b/electron/servers/nextjs/public/providers/pixabay.png differ diff --git a/electron/servers/nextjs/utils/providerConstants.ts b/electron/servers/nextjs/utils/providerConstants.ts index d4fb7e6d..4dfc6c4b 100644 --- a/electron/servers/nextjs/utils/providerConstants.ts +++ b/electron/servers/nextjs/utils/providerConstants.ts @@ -31,7 +31,7 @@ export const IMAGE_PROVIDERS: Record