2022-01-13 20:22:57 +00:00
|
|
|
import { SET_CUSTOM_EMOJIS } from '../actions/actionsTypes';
|
2022-05-07 01:06:08 +00:00
|
|
|
import { ICustomEmojis, TApplicationActions } from '../definitions';
|
2022-01-13 20:22:57 +00:00
|
|
|
|
|
|
|
export const initialState: ICustomEmojis = {};
|
|
|
|
|
|
|
|
export default function customEmojis(state = initialState, action: TApplicationActions): ICustomEmojis {
|
|
|
|
switch (action.type) {
|
|
|
|
case SET_CUSTOM_EMOJIS:
|
|
|
|
return action.emojis;
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
}
|