import * as types from 'app/types' import { store, history, dispatch } from 'app/store' // import { } from 'app/utils' // import actions from 'app/actions' export const showSection = section => dispatch => { dispatch({ type: types.viewer.toggle_section, key: section, value: true }) } export const hideSection = section => dispatch => { dispatch({ type: types.viewer.toggle_section, key: section, value: false }) } export const toggleSection = section => dispatch => { dispatch({ type: types.viewer.toggle_section, key: section, value: !store.getState().viewer[section] }) }