import React from "react"; /** * PhotoGrid — Instagram-style masonry grid for Docusaurus. * * Usage in any .mdx page: * * import PhotoGrid from "@site/src/components/PhotoGrid"; * * * * Props: * photos — string[] — paths relative to /static (required) * columns — number — desktop columns, default 3 * gap — string — grid gap, default "12px" */ export default function PhotoGrid({ photos = [], columns = 3, gap = "12px" }) { if (!photos.length) return null; return ( <>
{photos.map((src, i) => ( ))}
); }