1
0
puyopuyotetr.is/app/javascript/themes/glitch/actions/emojis.js
2017-11-17 19:29:16 -08:00

15 lines
238 B
JavaScript

import { saveSettings } from './settings';
export const EMOJI_USE = 'EMOJI_USE';
export function useEmoji(emoji) {
return dispatch => {
dispatch({
type: EMOJI_USE,
emoji,
});
dispatch(saveSettings());
};
};