site-library/packages/imagetools/components/Image.astro
2025-03-12 18:53:16 +01:00

11 lines
281 B
Plaintext

---
import renderImage from "../api/renderImage.js";
import type { PictureConfigOptions as ImageConfigOptions } from "../types.d";
const { link, style, image } = await renderImage(
Astro.props as ImageConfigOptions
);
---
<Fragment set:html={link + style + image} />