UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

18 lines (17 loc) 1.29 kB
import type { ComponentType } from 'react'; import React from 'react'; import type { UnsupportedAttachmentPreviewProps } from './UnsupportedAttachmentPreview'; import type { VoiceRecordingPreviewProps } from './VoiceRecordingPreview'; import type { FileAttachmentPreviewProps } from './FileAttachmentPreview'; import type { ImageAttachmentPreviewProps } from './ImageAttachmentPreview'; import { type GeolocationPreviewProps } from './GeolocationPreview'; export type AttachmentPreviewListProps = { AudioAttachmentPreview?: ComponentType<FileAttachmentPreviewProps>; FileAttachmentPreview?: ComponentType<FileAttachmentPreviewProps>; GeolocationPreview?: ComponentType<GeolocationPreviewProps>; ImageAttachmentPreview?: ComponentType<ImageAttachmentPreviewProps>; UnsupportedAttachmentPreview?: ComponentType<UnsupportedAttachmentPreviewProps>; VideoAttachmentPreview?: ComponentType<FileAttachmentPreviewProps>; VoiceRecordingPreview?: ComponentType<VoiceRecordingPreviewProps>; }; export declare const AttachmentPreviewList: ({ AudioAttachmentPreview, FileAttachmentPreview, GeolocationPreview, ImageAttachmentPreview, UnsupportedAttachmentPreview, VideoAttachmentPreview, VoiceRecordingPreview, }: AttachmentPreviewListProps) => React.JSX.Element | null;