Spaces:
Running
Running
File size: 660 Bytes
e6ce630 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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>
);
}
|