UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

27 lines (26 loc) 665 B
import { SCMediaType } from '@selfcommunity/types'; import { SCMediaChunkType } from '../../types/media'; export interface MediaChunkUploaderProps { /** * Chunk type * @default null */ type?: string | null; /** * Handles on success * @default null */ onSuccess: (media: SCMediaType) => void; /** * Handles on progress * @default null */ onProgress: (chunks: any) => void; /** * Handles on error * @default null */ onError: (chunk: SCMediaChunkType, error: string) => void; } declare const _default: (props: MediaChunkUploaderProps) => JSX.Element; export default _default;