---
import type { HTMLAttributes } from "astro/types"
import type { ImageType } from "./ImageType"
import TypedImg from "~ui/img/TypedImg.astro"

interface Props {
  id?: string
  img: ImageType
  zoomIn?: boolean
  invertColorsInDarkMode?: boolean
  class?: string
  restProps?: HTMLAttributes<"img">
}
const p = Astro.props
---

<TypedImg
  id={p.id}
  img={p.img}
  srcPrefix="/media-b2/"
  zoomIn={p.zoomIn}
  invertColorsInDarkMode={p.invertColorsInDarkMode}
  class={p.class}
  restProps={p.restProps}
/>
