about summary refs log tree commit diff
path: root/app/assets/javascripts/components/emoji.jsx
blob: c93c07c74b283394c601d592fa059dc801963842 (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.toImage(text);
};