{"version":3,"file":"Image.mjs","names":[],"sources":["../../../../src/components/Attachment/Image.tsx"],"sourcesContent":["import React from 'react';\nimport { ModalGallery as DefaultModalGallery } from './ModalGallery';\nimport { useComponentContext } from '../../context';\nimport type { GalleryItem } from '../Gallery/GalleryContext';\n\nexport type ImageProps = GalleryItem;\n\n/** Image attachment that opens in a modal gallery on click. */\nexport const ImageComponent = (galleryItem: ImageProps) => {\n  const { ModalGallery = DefaultModalGallery } = useComponentContext();\n\n  return <ModalGallery items={[galleryItem]} modalClassName='str-chat__image-modal' />;\n};\n"],"mappings":";;;;;;AAQA,IAAa,kBAAkB,gBAA4B;CACzD,MAAM,EAAE,cAAA,iBAAe,iBAAwB,oBAAoB;CAEnE,OAAO,oBAAC,gBAAD;EAAc,OAAO,CAAC,WAAW;EAAG,gBAAe;CAAyB,CAAA;AACrF"}