imagine / components /Gallery /ImageGrid.tsx
github-actions[bot]
GitHub deploy: 8ac466cec7cb18a3cdc40223ab11ee9b5f5f569b
e6ce630
raw
history blame contribute delete
660 Bytes
import ImageCard from './ImageCard';
interface Image {
url: string;
}
export default function ImageGrid({ title, images, batchId }: { title: string; images: Image[]; batchId: number }) {
return (
<div className="mb-8">
<h2 className="text-[#141414] dark:text-white text-[22px] font-bold leading-tight tracking-[-0.015em] px-4 pb-3 pt-5">{title}</h2>
<div className="flex overflow-x-auto pb-4">
<div className="flex gap-3 md:gap-4 px-4">
{images.map((image, index) => (
<ImageCard key={index} image={image} batchImages={images} batchId={batchId} />
))}
</div>
</div>
</div>
);
}