18 lines
293 B
JavaScript
18 lines
293 B
JavaScript
import * as types from '../constants/types';
|
|
|
|
const initialState = {
|
|
customEmojis: {}
|
|
};
|
|
|
|
|
|
export default function customEmojis(state = initialState.customEmojis, action) {
|
|
if (action.type === types.SET_CUSTOM_EMOJIS) {
|
|
return {
|
|
...state,
|
|
...action.payload
|
|
};
|
|
}
|
|
|
|
return state;
|
|
}
|