{"version":3,"file":"UnsupportedAttachment.mjs","names":[],"sources":["../../../../src/components/Attachment/UnsupportedAttachment.tsx"],"sourcesContent":["import React from 'react';\nimport type { Attachment } from 'stream-chat';\nimport { useComponentContextIcons, useTranslationContext } from '../../context';\n\nexport type UnsupportedAttachmentProps = {\n  attachment: Attachment;\n};\n\nexport const UnsupportedAttachment = () => {\n  const { IconUnsupportedAttachment } = useComponentContextIcons();\n  const { t } = useTranslationContext();\n  return (\n    <div\n      className='str-chat__message-attachment-unsupported'\n      data-testid='attachment-unsupported'\n    >\n      <IconUnsupportedAttachment />\n      <div className='str-chat__message-attachment-unsupported__metadata'>\n        <div\n          className='str-chat__message-attachment-unsupported__title'\n          data-testid='unsupported-attachment-title'\n        >\n          {t('common.unsupportedAttachment.text', 'Unsupported attachment')}\n        </div>\n      </div>\n    </div>\n  );\n};\n"],"mappings":";;;;;AAQA,IAAa,8BAA8B;CACzC,MAAM,EAAE,8BAA8B,yBAAyB;CAC/D,MAAM,EAAE,MAAM,sBAAsB;CACpC,OACE,qBAAC,OAAD;EACE,WAAU;EACV,eAAY;YAFd,CAIE,oBAAC,2BAAD,CAA4B,CAAA,GAC5B,oBAAC,OAAD;GAAK,WAAU;aACb,oBAAC,OAAD;IACE,WAAU;IACV,eAAY;cAEX,EAAE,qCAAqC,wBAAwB;GAC7D,CAAA;EACF,CAAA,CACF;;AAET"}