{item.name}
x{item.quantity}
+{item.quantity}
Quantity: {ownedItem?.quantity}
-On planet: {ownedItem?.sector}
+On sector (id): {ownedItem?.sector}
); })} diff --git a/components/Content/Planets/Construction/GlobeClickable.tsx b/components/Content/Planets/Construction/GlobeClickable.tsx new file mode 100644 index 00000000..969b683c --- /dev/null +++ b/components/Content/Planets/Construction/GlobeClickable.tsx @@ -0,0 +1,70 @@ +import { useEffect, useRef } from "react"; +import * as THREE from "three"; +import { Sprite, SpriteMaterial, TextureLoader } from "three"; +import { useFrame } from "@react-three/fiber"; + +interface Landmass { + lat: number; + lng: number; + imageURL: string; + onClickFunction: () => void; +} + +interface ClickableImagesProps { + landmasses: Landmass[]; +} + +function ClickableImages({ landmasses }: ClickableImagesProps) { + const groupRef = useRef+ {/* Content */} +
++ {mission.name} +
+