) — the visual editor's
// click-to-edit toolbar keys its "Replace Image" action off the DOM
// tag being `img`, so a placeholder div would be unrecoverable in the
// editor. FALLBACK_IMAGE_URL doubles as the "no image chosen" graphic.
return

}
// The fallback renders as a plain
![]()
so a broken upload can't cascade
// into a second (transformed) failing request.
const parsed = imgSrc === FALLBACK_IMAGE_URL ? null : parseWixMediaUrl(imgSrc)
if (!parsed) {
const isErrorUrl = imgSrc === FALLBACK_IMAGE_URL
return (

)
}
const focalPoint =
typeof focalPointX === "number" && typeof focalPointY === "number"
? { x: focalPointX, y: focalPointY }
: undefined
// Origin dimensions are optional — when known they stabilize layout via
// the wrapper's aspect-ratio before the image loads.
const aspectRatio =
originWidth && originHeight ? `${originWidth} / ${originHeight}` : undefined
return (
)
}
)
Image.displayName = "Image"
export { Image }