(emoji: string | object)
| 134 | * Convert the icon name stored in the emojiPicker to the string corresponding to the emoji. |
| 135 | */ |
| 136 | export const getEmojiIconNativeString = (emoji: string | object): string => { |
| 137 | if (!emoji) { |
| 138 | return emoji; |
| 139 | } |
| 140 | let emojiSlug = emoji; |
| 141 | if (typeof emoji === 'object') { |
| 142 | emojiSlug = (emoji as any).id; |
| 143 | } |
| 144 | return EmojisConfig[emojiSlug as string].native; |
| 145 | }; |
| 146 | |
| 147 | const FieldTypeStringMap = { |
| 148 | [FieldType.Attachment]: APIMetaFieldType.Attachment, |
no outgoing calls
no test coverage detected