MCPcopy Create free account
hub / github.com/apitable/apitable / getEmojiIconNativeString

Function getEmojiIconNativeString

packages/core/src/model/utils/index.ts:136–145  ·  view source on GitHub ↗
(emoji: string | object)

Source from the content-addressed store, hash-verified

134 * Convert the icon name stored in the emojiPicker to the string corresponding to the emoji.
135 */
136export 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
147const FieldTypeStringMap = {
148 [FieldType.Attachment]: APIMetaFieldType.Attachment,

Callers 7

apiMetaPropertyMethod · 0.90
openFieldPropertyMethod · 0.90
apiMetaPropertyMethod · 0.90
openFieldPropertyMethod · 0.90
getNodeListMethod · 0.90
nodeDetailVoTransformMethod · 0.90
nodeListVoTransformMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected