"use client" import { Button } from "@/components/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { CheckIcon, MinusIcon, Moon, Sun } from "lucide-react" import { useTranslations } from "next-intl" import { useTheme } from "next-themes" import { useId } from "react" import { RadioGroup, RadioGroupItem } from "./ui/radio-group" const items = [ { value: "light", label: "Light", image: "/ui-light.png" }, { value: "dark", label: "Dark", image: "/ui-dark.png" }, { value: "system", label: "System", image: "/ui-system.png" }, ] export function ModeToggle() { const { setTheme, theme } = useTheme() const t = useTranslations("ThemeSwitcher") const handleSelect = (newTheme: string) => { setTheme(newTheme) } const id = useId() return (
{items.map((item) => ( ))}
) }