bigbuffet-rw/app/soapbox/reducers/profile_hover_card.js
2020-09-10 19:09:27 -05:00

16 lines
422 B
JavaScript

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;
}
}