From eca1bab187e4f371dc01bee3f0829cee2b7b4ab3 Mon Sep 17 00:00:00 2001 From: Shadab Khan Date: Thu, 2 Feb 2023 19:07:09 +0530 Subject: [PATCH] feat: add theme switch on website home page --- packages/website/components/Footer.tsx | 15 ++++++++++++++- packages/website/theme.config.tsx | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/website/components/Footer.tsx b/packages/website/components/Footer.tsx index e68fb44de7f..84c68d874f0 100644 --- a/packages/website/components/Footer.tsx +++ b/packages/website/components/Footer.tsx @@ -1,6 +1,19 @@ -export default function Footer() { +import { ThemeSwitch, useConfig } from "nextra-theme-docs"; + +export default function Footer({ menu }) { + const config = useConfig(); + return (