13 lines
213 B
JavaScript
Raw Normal View History

2020-11-15 12:48:32 -06:00
import { saveSettings } from './settings'
2019-07-02 03:10:25 -04:00
2020-11-15 12:48:32 -06:00
export const EMOJI_USE = 'EMOJI_USE'
2019-07-02 03:10:25 -04:00
2020-11-15 12:48:32 -06:00
export const useEmoji = (emoji) => (dispatch) => {
dispatch({
type: EMOJI_USE,
emoji,
});
2019-07-02 03:10:25 -04:00
2020-11-15 12:48:32 -06:00
dispatch(saveSettings())
}