--- import type { Brand } from '../data/brands/brand'; export interface Image { src: string; alt?: string; title?: string; } interface Props { images: Image[]; dots?: number; } const { images } = Astro.props; let index = 1; --- {images?.map(image => ( {index++} of {images.length} {image.title && {image.title} } ))} ❮ ❯