about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/actions/emojis.js
blob: 7cd9d4b7b359f10e52e4e84bd5068dbc9628a814 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { saveSettings } from './settings';

export const EMOJI_USE = 'EMOJI_USE';

export function useEmoji(emoji) {
  return dispatch => {
    dispatch({
      type: EMOJI_USE,
      emoji,
    });

    dispatch(saveSettings());
  };
};