{
if (zoomTool) return;
startDrag(e, 'move');
}}
>

{
const img = e.currentTarget;
setNatural({ w: img.naturalWidth || 1, h: img.naturalHeight || 1 });
}}
/>
{editable && !zoomTool
? (['nw', 'ne', 'sw', 'se'] as const).map((corner) => (
);
if (embedded) {
return frame;
}
return (
{
if (!zoomTool || !onZoomAt) return;
e.stopPropagation();
const { nx, ny } = toNorm(e.clientX, e.clientY);
onZoomAt(nx, ny);
}}
>
{frame}
{showClose ? (
×
) : null}
);
}