File size: 312 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { get } from 'lodash';
import getSection from './get-section';

/**
 * Returns the current section name.
 * @param  {Object}  state Global state tree
 * @returns {?string}       Current section name
 */
export default function getSectionName( state ) {
	return get( getSection( state ), 'name', null );
}