File size: 304 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 | import { SECTION_SET } from 'calypso/state/action-types';
//TODO: do we really want to mix strings and booleans?
export default function section( state = false, action ) {
switch ( action.type ) {
case SECTION_SET:
return action.section !== undefined ? action.section : state;
}
return state;
}
|