File size: 414 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import { SECTION_SET, SECTION_LOADING_SET } from 'calypso/state/action-types';
import 'calypso/state/ui/init';
export function setSection( section, options = {} ) {
const action = {
...options,
type: SECTION_SET,
};
if ( section ) {
action.section = section;
}
return action;
}
export function setSectionLoading( isSectionLoading ) {
return {
type: SECTION_LOADING_SET,
isSectionLoading,
};
}
|