import { ReactNode } from "react"; import { Button } from "../../index"; import "./GalleryPhoto.css"; import { getCN, declCount, renderProps, usePadding } from "../utils"; function GalleryPhoto({ children, src, onOpen, ripple, disabled, heights = [150, 150, 200], ...props }: { [x: string]: any; }) { if (!Array.isArray(src)) src = [src]; return (
{src.map( (a: any, index: Number) => index <= 2 && (
3 ? 3 : src.length }`, ])} > {src.length > 3 && onOpen && index == 2 && ( )}
) )}
); } export default GalleryPhoto;