tambahannnya

This commit is contained in:
bipproduction
2025-02-15 21:56:18 +08:00
parent 00355814bc
commit 2115af8126
84 changed files with 2189 additions and 320 deletions

22
src/state/state-nav.ts Normal file
View File

@@ -0,0 +1,22 @@
import { proxy } from "valtio"
import { MenuItem } from "../../types/menu-item"
const stateNav = proxy<{
hover: boolean,
item: MenuItem[] | null
isSearch: boolean,
clear: () => void,
module: string | null
}>({
hover: false,
item: null,
isSearch: false,
clear: () => {
stateNav.hover = false
stateNav.item = null
stateNav.isSearch = false
},
module: null
})
export default stateNav