13 lines
365 B
JavaScript
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;
|
|
}
|
|
};
|