"use client"; import { Popover, PopoverTrigger, PopoverContent, } from "@/ui/primitives/popover"; // import { useContext } from "react"; // import { AppContext } from "../app/providers"; // import { FontDefault, FontSerif, FontMono } from "@/ui/icons"; import { Check, Menu as MenuIcon, Monitor, Moon, SunDim } from "lucide-react"; import { useTheme } from "next-themes"; // const fonts = [ // { // font: "Default", // icon: , // }, // { // font: "Serif", // icon: , // }, // { // font: "Mono", // icon: , // }, // ]; const appearances = [ { theme: "System", icon: , }, { theme: "Light", icon: , }, { theme: "Dark", icon: , }, ]; export default function Menu() { // const { font: currentFont, setFont } = useContext(AppContext); const { theme: currentTheme, setTheme } = useTheme(); return ( {/* Font {fonts.map(({ font, icon }) => ( { setFont(font); }} > {icon} {font} {currentFont === font && } ))} */} Appearance {appearances.map(({ theme, icon }) => ( { setTheme(theme.toLowerCase()); }} > {icon} {theme} {currentTheme === theme.toLowerCase() && ( )} ))} ); }
Font
Appearance