stream-chat-react
Version:
React components to create chat conversations or livestream style chat
9 lines (8 loc) • 575 B
TypeScript
import React from 'react';
import type { AnyLocalAttachment, LocalUploadAttachment } from 'stream-chat';
export type UnsupportedAttachmentPreviewProps<CustomLocalMetadata = Record<string, unknown>> = {
attachment: AnyLocalAttachment<CustomLocalMetadata>;
handleRetry: (attachment: LocalUploadAttachment) => void | Promise<LocalUploadAttachment | undefined>;
removeAttachments: (ids: string[]) => void;
};
export declare const UnsupportedAttachmentPreview: ({ attachment, handleRetry, removeAttachments, }: UnsupportedAttachmentPreviewProps) => React.JSX.Element;