mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			10 lines
		
	
	
		
			291 B
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			291 B
		
	
	
	
		
			TypeScript
		
	
	
	
| import { NavModel } from '@grafana/data';
 | |
| import { useSelector } from 'app/types';
 | |
| 
 | |
| import { getNavModel } from '../selectors/navModel';
 | |
| 
 | |
| export const useNavModel = (id: string): NavModel => {
 | |
|   const navIndex = useSelector((state) => state.navIndex);
 | |
|   return getNavModel(navIndex, id);
 | |
| };
 |