mui-component
Version:
some custom mui components
17 lines (16 loc) • 730 B
TypeScript
import { type ReactNode } from "react";
import type { ModalProps } from "../../../../feedback";
import { type PdfModalViewerProps } from "../../../PdfModalViewer";
export interface FileViewRenderProps {
fileSrc: string;
fileName?: string;
view?: boolean;
trigger: ReactNode;
type: "pdf" | "image" | "video" | string;
showDownload?: boolean;
onFileDownloadStart?: (fileUrl: string, fileName?: string) => void | boolean;
onFileDownload?: (fileUrl: string, fileName?: string) => void | Promise<void>;
modalProps?: Omit<ModalProps, "onReset">;
pdfViewerProps?: PdfModalViewerProps;
}
export declare const FileViewRender: (props: FileViewRenderProps) => import("react/jsx-runtime").JSX.Element;