import { defineStore } from 'pinia'
import { ref } from 'vue'

/**
 * Workspace Edit Mode Store
 * Manages global edit mode state for workspace sidebar
 */
export const useWorkspaceEditStore = defineStore('workspaceEdit', () => {
  const isEditMode = ref(false)
  
  function enterEditMode() {
    isEditMode.value = true
  }
  
  function exitEditMode() {
    isEditMode.value = false
  }
  
  function toggleEditMode() {
    isEditMode.value = !isEditMode.value
  }
  
  return {
    isEditMode,
    enterEditMode,
    exitEditMode,
    toggleEditMode
  }
})
