{"version":3,"file":"Mention.mjs","names":[],"sources":["../../../../../../src/components/Message/renderText/componentRenderers/Mention.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { RenderTextMentionEntity } from '../rehypePlugins/mentionsMarkdownPlugin';\n\nexport type MentionProps = PropsWithChildren<{\n  node: { mentionedEntity: RenderTextMentionEntity };\n}>;\n\nexport const Mention = ({ children, node: { mentionedEntity } }: MentionProps) => (\n  <span\n    className='str-chat__message-mention'\n    data-mention-id={mentionedEntity.id}\n    data-mention-type={mentionedEntity.mentionType}\n    data-user-id={mentionedEntity.mentionType === 'user' ? mentionedEntity.id : undefined}\n  >\n    {children}\n  </span>\n);\n"],"mappings":";;;AASA,IAAa,WAAW,EAAE,UAAU,MAAM,EAAE,wBAC1C,oBAAC,QAAD;CACE,WAAU;CACV,mBAAiB,gBAAgB;CACjC,qBAAmB,gBAAgB;CACnC,gBAAc,gBAAgB,gBAAgB,SAAS,gBAAgB,KAAK,KAAA;CAE3E;AACG,CAAA"}