feat: Add rightSidebarTabStore for managing right sidebar visibility

This commit is contained in:
Benjamin Lu
2025-07-02 17:26:41 -04:00
parent 943bf70326
commit ed5b371175

View File

@@ -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
}
})