Skip to content

Commit

Permalink
biome check
Browse files Browse the repository at this point in the history
  • Loading branch information
LyonSyonII committed Aug 23, 2024
1 parent 74ac59f commit 833c26b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions frontend/src/components/Comic.astro
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
import { Image } from 'astro:assets';
import type { ImageMetadata } from 'astro';
import { Image } from "astro:assets";
import type { ImageMetadata } from "astro";
interface Props {
src: string;
alt: string;
eager?: boolean;
src: string;
alt: string;
eager?: boolean;
}
const { src, alt, eager } = Astro.props;
const image: Promise<{default: ImageMetadata}> = import(`../assets/comics/${src}.svg`);
const image: Promise<{ default: ImageMetadata }> = import(
`../assets/comics/${src}.svg`
);
---

<Image src={image} {alt} loading={eager ? "eager" : "lazy"} />
Expand Down

0 comments on commit 833c26b

Please sign in to comment.