feat: navigation
This commit is contained in:
16
frontend/src/stores/nav-modal.store.ts
Normal file
16
frontend/src/stores/nav-modal.store.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export interface NavModalState {
|
||||
visible: boolean
|
||||
}
|
||||
|
||||
export const useNavModalStore = defineStore('nav-modal', {
|
||||
state: (): NavModalState => ({
|
||||
visible: false
|
||||
}),
|
||||
actions: {
|
||||
changeVisibility() {
|
||||
this.visible = !this.visible
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user