bigbuffet-rw/app/gabsocial/reducers/soapbox.js
2020-04-01 14:38:08 -05:00

13 lines
365 B
JavaScript

import { SOAPBOX_CONFIG_IMPORT } from '../actions/soapbox';
import { Map as ImmutableMap, fromJS } from 'immutable';
const initialState = ImmutableMap();
export default function soapbox(state = initialState, action) {
switch(action.type) {
case SOAPBOX_CONFIG_IMPORT:
return ImmutableMap(fromJS(action.soapboxConfig));
default:
return state;
}
};