Line data Source code
1 : import { defineStore } from 'pinia'
2 : import { ref } from 'vue'
3 :
4 2355 : export const useHelpCenterStore = defineStore('helpCenter', () => {
5 1975 : const isVisible = ref(false)
6 :
7 1975 : const toggle = () => {
8 21 : isVisible.value = !isVisible.value
9 : }
10 :
11 1975 : const show = () => {
12 0 : isVisible.value = true
13 : }
14 :
15 1975 : const hide = () => {
16 10 : isVisible.value = false
17 : }
18 :
19 1975 : return {
20 : isVisible,
21 : toggle,
22 : show,
23 : hide
24 : }
25 : })
|