export const emojiArr = [
    {
        text: '[微笑]',
        symbol: 'smile',
        position: [0, 0]
    },
    {
        text: '[撇嘴]',
        symbol: 'pieMouth',
        position: [-60, 0]
    },
    {
        text: '[色]',
        symbol: 'tity',
        position: [-120, 0]
    },
    {
        text: '[发呆]',
        symbol: 'asleep',
        position: [0, 0]
    },
    {
        text: '[得意]',
        symbol: 'complacent',
        position: [0, 0]
    },
    {
        text: '[流泪]',
        symbol: 'shedTears',
        position: [0, 0]
    },
    {
        text: '[害羞]',
        symbol: 'shy',
        position: [0, 0]
    },
    {
        text: '[闭嘴]',
        symbol: 'shutUp',
        position: [0, 0]
    },
    {
        text: '[睡]',
        symbol: 'sleep',
        position: [0, 0]
    },
    {
        text: '[大哭]',
        symbol: 'bigCry',
        position: [0, 0]
    },
    {
        text: '[尴尬]',
        symbol: 'awkward',
        position: [0, 0]
    },
    {
        text: '[发怒]',
        symbol: 'flareUp',
        position: [0, 0]
    },
    {
        text: '[调皮]',
        symbol: 'naughty',
        position: [0, 0]
    },
    {
        text: '[呲牙]',
        symbol: 'bareTeeth',
        position: [0, 0]
    },
    {
        text: '[惊讶]',
        symbol: 'amazed',
        position: [0, 0]
    },
    {
        text: '[难过]',
        symbol: 'feelSorry',
        position: [0, 0]
    },
    {
        text: '[酷]',
        symbol: 'cool',
        position: [0, 0]
    },
    {
        text: '[囧]',
        symbol: 'orz',
        position: [0, 0]
    },
    {
        text: '[抓狂]',
        symbol: 'crazy',
        position: [0, 0]
    },
    {
        text: '[吐]',
        symbol: 'vomit',
        position: [0, 0]
    },
    {
        text: '[偷笑]',
        symbol: 'titter',
        position: [0, 0]
    },
    {
        text: '[愉快]',
        symbol: 'happy',
        position: [0, 0]
    },
    {
        text: '[白眼]',
        symbol: 'whiteEye',
        position: [0, 0]
    },
    {
        text: '[傲慢]',
        symbol: 'arrogance',
        position: [0, 0]
    },
    {
        text: '[饥饿]',
        symbol: 'hunger',
        position: [0, 0]
    },
    {
        text: '[困]',
        symbol: 'tired',
        position: [0, 0]
    },
    {
        text: '[惊恐]',
        symbol: 'terrified',
        position: [0, 0]
    },
    {
        text: '[流汗]',
        symbol: 'sweat',
        position: [0, 0]
    },
    {
        text: '[憨笑]',
        symbol: 'smileFatuously',
        position: [0, 0]
    },
    {
        text: '[悠闲]',
        symbol: 'easy',
        position: [0, 0]
    },
    {
        text: '[奋斗]',
        symbol: 'struggle',
        position: [0, 0]
    },
    {
        text: '[咒骂]',
        symbol: 'swear',
        position: [0, 0]
    },
    {
        text: '[疑问]',
        symbol: 'query',
        position: [0, 0]
    },
    {
        text: '[嘘]',
        symbol: 'hiss',
        position: [0, 0]
    },
    {
        text: '[晕]',
        symbol: 'giddy',
        position: [0, 0]
    },
    {
        text: '[疯了]',
        symbol: 'insane',
        position: [0, 0]
    },
    {
        text: '[衰]',
        symbol: 'decline',
        position: [0, 0]
    },
    {
        text: '[骷髅]',
        symbol: 'skull',
        position: [0, 0]
    },
    {
        text: '[敲打]',
        symbol: 'beat',
        position: [0, 0]
    },
    {
        text: '[再见]',
        symbol: 'goodbye',
        position: [0, 0]
    },
    {
        text: '[擦汗]',
        symbol: 'wipePerspiration',
        position: [0, 0]
    },
    {
        text: '[抠鼻]',
        symbol: 'pickNose',
        position: [0, 0]
    },
    {
        text: '[鼓掌]',
        symbol: 'applaud',
        position: [0, 0]
    },
    {
        text: '[糗大了]',
        symbol: 'embarrassed',
        position: [0, 0]
    },
    {
        text: '[坏笑]',
        symbol: 'snicker',
        position: [0, 0]
    },
    {
        text: '[左哼哼]',
        symbol: 'leftHum',
        position: [0, 0]
    },
    {
        text: '[右哼哼]',
        symbol: 'rightHum',
        position: [0, 0]
    },
    {
        text: '[哈欠]',
        symbol: 'yawn',
        position: [0, 0]
    },
    {
        text: '[鄙视]',
        symbol: 'disdain',
        position: [0, 0]
    },
    {
        text: '[委屈]',
        symbol: 'grievance',
        position: [0, 0]
    },
    {
        text: '[快哭了]',
        symbol: 'cring',
        position: [0, 0]
    },
    {
        text: '[阴险]',
        symbol: 'cattiness',
        position: [0, 0]
    },
    {
        text: '[亲亲]',
        symbol: 'kiss',
        position: [0, 0]
    },
    {
        text: '[吓]',
        symbol: 'threaten',
        position: [0, 0]
    },
    {
        text: '[可怜]',
        symbol: 'pitiful',
        position: [0, 0]
    },
    {
        text: '[菜刀]',
        symbol: 'kitchenKnife',
        position: [0, 0]
    },
    {
        text: '[西瓜]',
        symbol: 'watermelon',
        position: [0, 0]
    },
    {
        text: '[啤酒]',
        symbol: 'beer',
        position: [0, 0]
    },
    {
        text: '[篮球]',
        symbol: 'basketball',
        position: [0, 0]
    },
    {
        text: '[乒乓]',
        symbol: 'ping-pong',
        position: [0, 0]
    },
    {
        text: '[咖啡]',
        symbol: 'coffee',
        position: [0, 0]
    },
    {
        text: '[饭]',
        symbol: 'rice',
        position: [0, 0]
    },
    {
        text: '[猪头]',
        symbol: 'pigHead',
        position: [0, 0]
    },
    {
        text: '[玫瑰]',
        symbol: 'rose',
        position: [0, 0]
    },
    {
        text: '[凋谢]',
        symbol: 'fade',
        position: [0, 0]
    },
    {
        text: '[嘴唇]',
        symbol: 'lip',
        position: [0, 0]
    },
    {
        text: '[爱心]',
        symbol: 'love',
        position: [0, 0]
    },
    {
        text: '[心碎]',
        symbol: 'heartbreak',
        position: [0, 0]
    },
    {
        text: '[蛋糕]',
        symbol: 'cake',
        position: [0, 0]
    },
    {
        text: '[闪电]',
        symbol: 'lightning',
        position: [0, 0]
    },
    {
        text: '[炸弹]',
        symbol: 'bombs',
        position: [0, 0]
    },
    {
        text: '[刀]',
        symbol: 'knife',
        position: [0, 0]
    },
    {
        text: '[足球]',
        symbol: 'soccer',
        position: [0, 0]
    },
    {
        text: '[瓢虫]',
        symbol: 'ladybird',
        position: [0, 0]
    },
    {
        text: '[便便]',
        symbol: 'excrement',
        position: [0, 0]
    },
    {
        text: '[月亮]',
        symbol: 'moon',
        position: [0, 0]
    },
    {
        text: '[太阳]',
        symbol: 'sun',
        position: [0, 0]
    },
    {
        text: '[礼物]',
        symbol: 'gift',
        position: [0, 0]
    },
    {
        text: '[拥抱]',
        symbol: 'embrace',
        position: [0, 0]
    },
    {
        text: '[强]',
        symbol: 'strong',
        position: [0, 0]
    },
    {
        text: '[弱]',
        symbol: 'weak',
        position: [0, 0]
    },
    {
        text: '[握手]',
        symbol: 'handshake',
        position: [0, 0]
    },
    {
        text: '[胜利]',
        symbol: 'victory',
        position: [0, 0]
    },
    {
        text: '[抱拳]',
        symbol: 'holdFist',
        position: [0, 0]
    },
    {
        text: '[勾引]',
        symbol: 'seduce',
        position: [0, 0]
    },
    {
        text: '[拳头]',
        symbol: 'fist',
        position: [0, 0]
    },
    {
        text: '[差劲]',
        symbol: 'bad',
        position: [0, 0]
    },
    {
        text: '[爱你]',
        symbol: 'loveYou',
        position: [0, 0]
    },
    {
        text: '[NO]',
        symbol: 'no',
        position: [0, 0]
    },
    {
        text: '[OK]',
        symbol: 'ok',
        position: [0, 0]
    }
]

/**
 * @description emoji表情
 * @param type  值和美团返回的保持一致
 * @returns 
 */
export const emojiAnanlyze = (type: string) => {
    let emojiSymbol = type
    let findItem = emojiArr.findIndex(item => item.text === emojiSymbol)
    if (findItem !== -1) emojiSymbol = emojiArr[findItem].symbol
    return emojiSymbol
}