mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
17 lines
307 B
TypeScript
17 lines
307 B
TypeScript
import { RootStore, IRootStore } from './RootStore';
|
|
import config from 'app/core/config';
|
|
|
|
export let store: IRootStore;
|
|
|
|
export function createStore(backendSrv) {
|
|
store = RootStore.create(
|
|
{},
|
|
{
|
|
backendSrv: backendSrv,
|
|
navTree: config.bootData.navTree,
|
|
}
|
|
);
|
|
|
|
return store;
|
|
}
|