UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

7 lines (6 loc) 595 B
import React from 'react'; import type { LocalAudioAttachment, LocalFileAttachment, LocalVideoAttachment } from 'stream-chat'; import type { UploadAttachmentPreviewProps } from './types'; export type FileAttachmentPreviewProps<CustomLocalMetadata = unknown> = UploadAttachmentPreviewProps<LocalFileAttachment<CustomLocalMetadata> | LocalAudioAttachment<CustomLocalMetadata> | LocalVideoAttachment<CustomLocalMetadata>>; declare const FileAttachmentPreview: ({ attachment, handleRetry, removeAttachments, }: FileAttachmentPreviewProps) => React.JSX.Element; export default FileAttachmentPreview;