import { useLocalStorageRef } from '~/utils/useLocalStorageRef' import type { Ref } from 'vue' interface SidebarFeatures { showWorkstations: boolean showAiTools: boolean showLeadsHub: boolean } const KEY = 'policy-ui-sidebar-features-v1' let _shared: Ref | null = null export function useSidebarFeatures() { if (!_shared) { _shared = useLocalStorageRef(KEY, () => ({ showWorkstations: false, showAiTools: false, showLeadsHub: true, })) } return _shared }