about summary refs log tree commit diff
path: root/app/assets/javascripts/components/emoji.jsx
blob: a06c759531347e419a1d4d811cd3f8d284635c16 (plain) (blame)
1
2
3
4
5
6
7
8
9
import emojione from 'emojione';

emojione.imageType    = 'png';
emojione.sprites      = false;
emojione.imagePathPNG = '/emoji/';

export default function emojify(text) {
  return emojione.unicodeToImage(text);
};