--- // Import the necessary types and assets import type { Comic } from '../lib/types'; import { Image } from 'astro:assets'; interface Props { comic: Comic; } const { comic } = Astro.props; // Determine if the file is AVIF based on the URL const isAvif = comic.md_comics.md_covers[0]?.b2key.endsWith('.avif'); const coverUrl = comic.md_comics.md_covers[0] ? `https://meo.comick.pictures/${comic.md_comics.md_covers[0].b2key}` : '/placeholder.png'; ---