// Shared sidebar collapsed state. Used by both the shell and the layout's
// shortcut handler so ⌘[ from anywhere flips the same thing.

const collapsed = ref(false)

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