github.com/grafana/pyroscope@v1.18.0/public/app/services/storage.ts (about) 1 import type { StoreType } from '@pyroscope/redux/store'; 2 3 let _store: StoreType | null = null; 4 5 export function setStore(store: StoreType) { 6 _store = store; 7 } 8 9 export function getStore() { 10 return _store; 11 } 12 13 export function tenantIDFromStorage(): string { 14 return getStore()?.getState().tenant.tenantID || ''; 15 }