"use client"; import { Check, Menu as MenuIcon, Monitor, Moon, SunDim } from "lucide-react"; import { useTheme } from "next-themes"; import { Button } from "./button"; import { Popover, PopoverContent, PopoverTrigger } from "./popover"; // TODO implement multiple fonts editor // 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