@sberdevices/plasma-temple
Version:
SberDevices CanvasApp Templates.
19 lines • 995 B
TypeScript
import React from 'react';
import { ComponentPropsWithHeader } from '../../components/Header/types';
import { GalleryCardParams, GalleryCardProps } from '../../components/GalleryCard/types';
import { AnyObject } from '../../types';
import { GalleryPageState } from './types';
interface GalleryPageProps<T extends AnyObject = AnyObject> extends ComponentPropsWithHeader {
state: GalleryPageState<T>;
changeState: (state: GalleryPageState<T>) => void;
onCardClick: (card: GalleryCardParams<T>) => void;
galleryCard?: React.ComponentType<GalleryCardProps<T>>;
}
export interface GalleryPageControl {
changeActiveGallery: (index: number) => void;
}
export declare const GalleryPage: <T extends Record<string, any> = Record<string, any>>(props: GalleryPageProps<T> & {
ref?: ((instance: GalleryPageControl | null) => void) | React.RefObject<GalleryPageControl> | null | undefined;
}) => React.ReactElement;
export default GalleryPage;
//# sourceMappingURL=GalleryPage.d.ts.map