import { defineStore } from 'pinia'

export const useUiStore = defineStore('ui', {
    state: () => ({
        sidebarCollapsed: false,
        sidebarOpen: false,
    }),
    actions: {
        toggleSidebar() {
            this.sidebarCollapsed = !this.sidebarCollapsed
        },
        openMobileSidebar() {
            this.sidebarOpen = true
        },
        closeMobileSidebar() {
            this.sidebarOpen = false
        },
    },
})
