Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

377 B
Raw Blame
import legacyEmojis from './emoji-legacy.json'

/** Resolve persisted emoji-mart IDs (including aliases) without loading picker data. */
export function resolveEmoji(value?: string | null): string {
  if (!value) return '🤖'
  const id = value.replace(/^:|:$/g, '')
  if (Object.hasOwn(legacyEmojis, id)) return legacyEmojis[id as keyof typeof legacyEmojis]
  return value
}