@plteam/chat-ui
Version:
CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript
25 lines (24 loc) • 721 B
TypeScript
import 'photoswipe/style.css';
import '../photoswipe/skin/skin.css';
type Props = {
gallery?: {
elements: {
id: string | number;
image: {
id?: number;
src: string;
origins?: string;
preview: string;
width: number;
height: number;
};
}[];
};
onGalleryOpen?: () => void;
onSlideChange?: (index: number) => void;
elementsSource?: 'className' | 'containerChildren';
};
export declare const usePhotoswipe: ({ gallery, onGalleryOpen, onSlideChange, elementsSource }: Props) => {
galleryId: string;
};
export default usePhotoswipe;