import { type Image } from "../build"; interface YearPhotosProps { year: string; images: Image[]; } export default function YearPhotos({ year, images }: YearPhotosProps) { return (

{year}

{images.map((image) => { const aspectRatio = image.width / image.height; return ( 1.05 ? "lg:[grid-column:span_2]" : "aspect-square" }`} key={`${year}-${image.id}`} data-slide-name={image.id} data-src={image.thumbnail[2048]} data-srcset={`${image.thumbnail[512]} 480w, ${image.thumbnail[1024]} 1440w, ${image.thumbnail[2048]} 2001w`} data-sizes="(max-width: 1000x) 480px, (max-width: 2000px) 1440px, 2001px" data-download-url={image.image} > {image.alt} ); })}
); }