--- import { Image } from 'astro:assets'; import type { Entry } from '../data/records'; interface Props { items: Entry[]; } const { items } = Astro.props; const photos = import.meta.glob<{ default: ImageMetadata }>('../assets/images/presentations/**/*.{jpg,jpeg,png,webp}', { eager: true }); const photo = (file: string) => photos[`../assets/images/presentations/${file}`]?.default; ---