bigbuffet-rw/app/soapbox/reducers/profile_hover_card.js

17 lines
422 B
JavaScript
Raw Normal View History

import { PROFILE_HOVER_CARD_OPEN } from 'soapbox/actions/profile_hover_card';
import { Map as ImmutableMap } from 'immutable';
const initialState = ImmutableMap();
export default function profileHoverCard(state = initialState, action) {
switch(action.type) {
case PROFILE_HOVER_CARD_OPEN:
return ImmutableMap({
ref: action.ref,
accountId: action.accountId,
});
default:
return state;
}
}