diff --git a/src/stores/workspace/rightSidebarTabStore.ts b/src/stores/workspace/rightSidebarTabStore.ts new file mode 100644 index 0000000000..f843585f6e --- /dev/null +++ b/src/stores/workspace/rightSidebarTabStore.ts @@ -0,0 +1,25 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +export const useRightSidebarTabStore = defineStore('rightSidebarTab', () => { + const isVisible = ref(false) + + const toggleVisibility = () => { + isVisible.value = !isVisible.value + } + + const show = () => { + isVisible.value = true + } + + const hide = () => { + isVisible.value = false + } + + return { + isVisible, + toggleVisibility, + show, + hide + } +})