'use client' import * as React from 'react' import { useTheme } from 'next-themes' import { twMerge } from 'tailwind-merge' import { motion as m } from 'framer-motion' const themeMenus = [ { name: 'light', }, { name: 'dark', }, { name: 'system', }, ] const ToggleTheme = () => { const { theme: currentTheme, setTheme } = useTheme() const handeleNativeTheme = async (val: string) => { switch (val) { case 'light': return await window?.electronAPI.setNativeThemeLight() case 'dark': return await window?.electronAPI.setNativeThemeDark() default: return await window?.electronAPI.setNativeThemeSystem() } } return (