polymech-astro/packages/imagetools/components/Image.astro
2025-08-26 12:17:29 +02:00

9 lines
272 B
Plaintext

---
import renderImage from "../api/renderImg.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} />