bigbuffet-rw/app/gabsocial/reducers/instance.js
2020-04-01 15:05:52 -05:00

13 lines
350 B
JavaScript

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