mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 19:42:14 +08:00

* Chore: reduce barrel files * chore: fixes unit test * Chore: reduces barrel files part II * chore: fix import sorting
10 lines
297 B
TypeScript
10 lines
297 B
TypeScript
import { NavModel } from '@grafana/data';
|
|
import { useSelector } from 'app/types/store';
|
|
|
|
import { getNavModel } from '../selectors/navModel';
|
|
|
|
export const useNavModel = (id: string): NavModel => {
|
|
const navIndex = useSelector((state) => state.navIndex);
|
|
return getNavModel(navIndex, id);
|
|
};
|