mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
16 lines
390 B
TypeScript
16 lines
390 B
TypeScript
|
import { createSlice } from '@reduxjs/toolkit';
|
||
|
import { NavModelItem } from '@grafana/data';
|
||
|
import config from 'app/core/config';
|
||
|
|
||
|
export const initialState: NavModelItem[] = config.bootData.navTree;
|
||
|
|
||
|
const navTreeSlice = createSlice({
|
||
|
name: 'navBarTree',
|
||
|
initialState,
|
||
|
reducers: {},
|
||
|
});
|
||
|
|
||
|
export const {} = navTreeSlice.actions;
|
||
|
|
||
|
export const navTreeReducer = navTreeSlice.reducer;
|