@bothub-chat/ui
Version:
Bothub UI Components
31 lines (30 loc) • 941 B
TypeScript
import { UploadedFileStatus } from './types';
export type Primary = {
variant?: 'primary';
sizeInBytes: number;
};
export type Secondary = {
variant: 'secondary';
loading?: boolean;
};
export type UploadedFileProps = {
filename: string;
progress: number;
status?: UploadedFileStatus;
doneLabel?: React.ReactNode;
errorLabel?: React.ReactNode;
className?: string;
onDelete?: {
disabled?: boolean;
action: () => void;
} | (() => void);
bottomContent?: React.ReactNode;
fullWidth?: boolean;
onPause?: () => void;
onResume?: () => void;
onRetry?: () => void;
waitUpload?: boolean;
} & (Primary | Secondary);
export declare const UploadedFile: import("react").ForwardRefExoticComponent<UploadedFileProps & import("react").RefAttributes<HTMLDivElement>>;
export * from './types';
export { UploadedFileStatusChip, UploadedFileStatusChipText } from './styled';