import { t } from "@lingui/core/macro" import { MoonStarIcon, SunIcon, SunMoonIcon } from "lucide-react" import { useTheme } from "@/components/theme-provider" import { Button } from "@/components/ui/button" import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip" import { Trans } from "@lingui/react/macro" import { cn } from "@/lib/utils" const themes = ["light", "dark", "system"] as const const icons = [SunIcon, MoonStarIcon, SunMoonIcon] as const export function ModeToggle() { const { theme, setTheme } = useTheme() const currentIndex = themes.indexOf(theme) const Icon = icons[currentIndex] return ( Switch theme ) }