--- interface Props { id?: string src: string; class?: string; alt?: string } import { Image } from 'astro:assets'; const {id, src, alt} = Astro.props; const className = Astro.props.class; const isLocal = !(src.startsWith('/') || src.startsWith('http') || src.startsWith('https') || src.startsWith('data:')); let img; if (isLocal) { img = (await import("../../" + src)).default; } ---