You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			13 lines
		
	
	
		
			420 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			420 B
		
	
	
	
		
			TypeScript
		
	
| 
											5 years ago
										 | import { createSelector } from 'reselect'; | ||
|  | 
 | ||
|  | import { StateType } from '../reducer'; | ||
|  | import { SectionStateType } from '../ducks/section'; | ||
|  | import { SectionType } from '../../components/session/ActionsPanel'; | ||
|  | 
 | ||
|  | export const getSection = (state: StateType): SectionStateType => state.section; | ||
|  | 
 | ||
|  | export const getFocusedSection = createSelector( | ||
|  |   getSection, | ||
|  |   (state: SectionStateType): SectionType => state.focusedSection | ||
|  | ); |