"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { motion } from "motion/react"; import { LayoutDashboard, Trophy, ScrollText, Users, Activity, Sun, Moon, Monitor, Languages } from "lucide-react"; import { useI18n } from "@/lib/i18n"; import { useTheme, type Theme } from "@/lib/theme"; export function Sidebar() { const pathname = usePathname(); const { t, locale, setLocale } = useI18n(); const { theme, setTheme, isEmbedded } = useTheme(); const nav = [ { href: "/", label: t("nav.overview"), icon: LayoutDashboard }, { href: "/rankings", label: t("nav.rankings"), icon: Trophy }, { href: "/aggregation", label: t("nav.aggregation"), icon: Users }, { href: "/logs", label: t("nav.logs"), icon: ScrollText }, ]; const themes: { value: Theme; icon: typeof Sun; label: string }[] = [ { value: "light", icon: Sun, label: t("theme.light") }, { value: "dark", icon: Moon, label: t("theme.dark") }, { value: "system", icon: Monitor, label: t("theme.system") }, ]; return ( ); }