diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index c759db6..6575387 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -5,15 +5,7 @@ import { Link } from "@/i18n/routing";
import { vipnagorgialla } from "@/components/Vipnagorgialla";
// Icons
-import {
- MdMenu,
- MdSunny,
- MdModeNight,
- MdComputer,
-} from "react-icons/md";
-
-// Theme Provider
-import { useTheme } from "next-themes";
+import { MdMenu } from "react-icons/md";
import LanguageSwitcher from "./LanguageSwitcher";
@@ -40,17 +32,10 @@ interface NavItem {
}
interface HeaderProps {
- themeLabels: {
- light: string;
- dark: string;
- system: string;
- };
navItems: NavItem[];
}
-const Header = ({ themeLabels, navItems }: HeaderProps) => {
- const { theme, setTheme } = useTheme();
-
+const Header = ({ navItems }: HeaderProps) => {
// Filter nav items for the horizontal bar (exclude kodukord)
const mainNavItems = navItems.filter(
(item) => item.href !== "/kodukord"
@@ -84,49 +69,6 @@ const Header = ({ themeLabels, navItems }: HeaderProps) => {
))}
-
-
-
-
-
- setTheme("light")}
- disabled={theme === "light"}
- >
-
- {themeLabels.light}
-
- setTheme("dark")}
- disabled={theme === "dark"}
- >
-
- {themeLabels.dark}
-
- setTheme("system")}
- disabled={theme === "system"}
- >
-
- {themeLabels.system}
-
-
-
{/* Mobile menu button */}
diff --git a/src/components/SidebarLayoutClient.tsx b/src/components/SidebarLayoutClient.tsx
index 26c4933..5715b0b 100644
--- a/src/components/SidebarLayoutClient.tsx
+++ b/src/components/SidebarLayoutClient.tsx
@@ -16,19 +16,11 @@ interface NavItem {
}
interface SidebarLayoutClientProps {
- themeLabels: {
- light: string;
- dark: string;
- system: string;
- };
navItems: NavItem[];
}
export default function SidebarLayoutClient({
- themeLabels,
navItems,
}: SidebarLayoutClientProps) {
- return (
-
- );
+ return ;
}
diff --git a/src/components/SidebarLayoutServer.tsx b/src/components/SidebarLayoutServer.tsx
index c02b912..e2418dc 100644
--- a/src/components/SidebarLayoutServer.tsx
+++ b/src/components/SidebarLayoutServer.tsx
@@ -2,14 +2,6 @@ import { getTranslations } from "next-intl/server";
import SidebarLayoutClient from "./SidebarLayoutClient";
export default async function SidebarLayoutServer() {
- const t = await getTranslations("common");
-
- const themeLabels = {
- light: t("theme.light"),
- dark: t("theme.dark"),
- system: t("theme.system"),
- };
-
const navT = await getTranslations("navigation");
const navItems = [
@@ -21,5 +13,5 @@ export default async function SidebarLayoutServer() {
{ href: "/kodukord" as const, label: navT("houserules") },
];
- return ;
+ return ;
}