import React from 'react';
import { Text } from 'react-native';
import shortnameToUnicode from '../../utils/shortnameToUnicode';
import CustomEmoji from '../EmojiPicker/CustomEmoji';
import {IMessageEmoji} from "./interfaces";
const Emoji = React.memo(({ content, baseUrl, standardEmojiStyle, customEmojiStyle, getCustomEmoji }: IMessageEmoji) => {
const parsedContent = content.replace(/^:|:$/g, '');
const emoji = getCustomEmoji(parsedContent);
if (emoji) {
return ;
}
return { shortnameToUnicode(content) };
}, () => true);
Emoji.displayName = 'MessageEmoji';
export default Emoji;