"use client" import { resetAppStore } from "@/store/app" import { resetToolStore } from "@/store/tool" import { addToast } from "@heroui/react" import { Close, Minus, Moon, Refresh, RocketOne, Square, SunOne, } from "@icon-park/react" import { getCurrentWindow } from "@tauri-apps/api/window" import { /* relaunch, */ exit } from "@tauri-apps/plugin-process" import { useTheme } from "next-themes" // import { platform } from "@tauri-apps/plugin-os" import { usePathname, useRouter } from "next/navigation" import { saveAll } from "tauri-plugin-valtio" const Nav = () => { const { theme, setTheme } = useTheme() const close = async () => { // (await window.hideOnClose) ? getCurrent().hide() : exit(); await saveAll() await exit() } const minimize = async () => { await saveAll() await getCurrentWindow().minimize() } const toggleMaximize = async () => { const current = getCurrentWindow() const maximized = await current.isMaximized() await (maximized ? current.unmaximize() : current.maximize()) } // const reset = async () => { // await relaunch() // } const router = useRouter() const pathname = usePathname() return ( ) } export default Nav