+

{
+ const image = event.currentTarget;
+ setNaturalSize({
+ width: image.naturalWidth || 300,
+ height: image.naturalHeight || 150,
+ });
+ }}
+ onError={() => setError("The browser could not render this SVG.")}
+ style={{
+ width: Math.max(1, naturalSize.width * displayScale),
+ height: Math.max(1, naturalSize.height * displayScale),
+ maxWidth: "none",
+ flex: "none",
+ }}
+ />
+