1- import React , { PropsWithChildren , useLayoutEffect , useRef , useState } from 'react' ;
1+ import type { PropsWithChildren } from 'react' ;
2+ import React , { useLayoutEffect , useRef , useState } from 'react' ;
23import ReactPlayer from 'react-player' ;
34import clsx from 'clsx' ;
4-
55import * as linkify from 'linkifyjs' ;
6+ import type { Attachment } from 'stream-chat' ;
67
78import { AttachmentActions as DefaultAttachmentActions } from './AttachmentActions' ;
89import { Audio as DefaultAudio } from './Audio' ;
@@ -11,23 +12,19 @@ import { Gallery as DefaultGallery, ImageComponent as DefaultImage } from '../Ga
1112import { Card as DefaultCard } from './Card' ;
1213import { FileAttachment as DefaultFile } from './FileAttachment' ;
1314import { UnsupportedAttachment as DefaultUnsupportedAttachment } from './UnsupportedAttachment' ;
14- import {
15+ import type {
1516 AttachmentComponentType ,
1617 GalleryAttachment ,
17- isGalleryAttachmentType ,
18- isSvgAttachment ,
1918 RenderAttachmentProps ,
2019 RenderGalleryProps ,
2120} from './utils' ;
22-
21+ import { isGalleryAttachmentType , isSvgAttachment } from './utils' ;
2322import { useChannelStateContext } from '../../context/ChannelStateContext' ;
24-
23+ import type { LocalAttachment } from '../MessageInput' ;
2524import type {
2625 ImageAttachmentConfiguration ,
2726 VideoAttachmentConfiguration ,
2827} from '../../types/types' ;
29- import type { Attachment } from 'stream-chat' ;
30- import { LocalAttachment } from '../MessageInput' ;
3128
3229export type AttachmentContainerProps = {
3330 attachment : Attachment | GalleryAttachment ;
0 commit comments