--- import { Image } from "astro:assets"; import type { ImageMetadata } from "astro"; import swipeIcon from "@/assets/icons/swipe.png"; type PhotoSidecar = { id: string; title: string[]; alt: string; location: string; date: string; tags: string[]; exif: { camera: string; lens: string; aperture: string; iso: string; focal_length: string; shutter_speed: string; }; }; interface Props { sidecar: PhotoSidecar; image: ImageMetadata; prevHref: string | null; nextHref: string | null; backHref: string; backLabel: string; canonicalUrl: string; } const { sidecar, image, prevHref, nextHref, backHref, backLabel, canonicalUrl, } = Astro.props; ---
← {backLabel}
{ prevHref ? ( ) : ( ) }
{sidecar.alt}

{sidecar.title[0]}

ƒ{sidecar.exif.aperture} · {sidecar.exif.shutter_speed}s · ISO {sidecar.exif.iso} · {sidecar.exif.focal_length}mm { sidecar.tags.length > 0 && (
{sidecar.tags.map((tag) => ( {tag} ))}
) }
{ nextHref ? ( ) : ( ) }