@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
22 lines (21 loc) • 750 B
TypeScript
import { ReactNode } from 'react';
interface PhotoLibraryCtx {
photos: PhotoData[] | null;
computePhotoPath: (src: string) => string;
}
export declare const PhotoLibraryContext: import('react').Context<PhotoLibraryCtx>;
interface PhotoData {
id: number;
src: string;
caption?: string;
}
interface PhotoLibraryProviderProps extends PhotoLibraryCtx {
children: ReactNode;
}
export declare function PhotoLibraryProvider(props: PhotoLibraryProviderProps): import('react').FunctionComponentElement<import('react').ProviderProps<PhotoLibraryCtx>>;
export declare function PhotoOverlay(props: any): import('react').FunctionComponentElement<{
images: any;
isOpen?: boolean | undefined;
onClose: any;
}> | null;
export {};