import { defineStore } from 'pinia' export const useTenantStore = defineStore('tenant', { state: () => ({ currentTenantId: localStorage.getItem('X-Tenant-Id') || 'default' }), actions: { setTenant(id: string) { this.currentTenantId = id localStorage.setItem('X-Tenant-Id', id) } } })