@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
15 lines (14 loc) • 515 B
TypeScript
import { ReactNode } from "react";
export interface PreviewContextProps {
isGroup: boolean;
lazyLoad: boolean;
previewSrc: string[];
titles: ReactNode[];
currentIndex: number;
visible: boolean;
previewObserver: IntersectionObserver;
setCurrentIndex: (current: number) => void;
handleVisibleChange: (visible: boolean, preVisible?: boolean) => void;
setDownloadName: (src: string) => string;
}
export declare const PreviewContext: import("react").Context<PreviewContextProps>;