// Shared sidebar collapse state. Used by layouts/default.vue and the layout's
// keyboard shortcut handler so ⌘[ from anywhere flips the same thing.

const collapsed = ref(false)

export const useSidebar = () => ({
  collapsed,
  toggle: () => {
    collapsed.value = !collapsed.value
  },
})
