1
1
"use client" ;
2
2
3
- import React , { useCallback , useEffect , useState } from "react" ;
3
+ import React , { ReactNode , useCallback , useEffect , useState } from "react" ;
4
4
import { useSupabaseClient , useSession } from "@supabase/auth-helpers-react" ;
5
5
import { useActivePlanet } from "@/context/ActivePlanet" ;
6
6
import { EarthViewLayout } from "@/components/(scenes)/planetScene/layout" ;
7
7
import { InventoryStructureItem } from "@/types/Items" ;
8
8
import { PlanetarySystem } from "@/components/(scenes)/planetScene/orbitals/system" ;
9
- import StructuresOnPlanet , { AtmosphereStructuresOnPlanet , OrbitalStructuresOnPlanet } from "@/components/Structures/Structures" ;
9
+ import StructuresOnPlanet , {
10
+ AtmosphereStructuresOnPlanet ,
11
+ OrbitalStructuresOnPlanet ,
12
+ } from "@/components/Structures/Structures" ;
10
13
import AllAutomatonsOnActivePlanet from "@/components/Structures/Auto/AllAutomatons" ;
11
14
import InitialiseChapterOneUser from "@/components/(scenes)/chapters/one/InitialiseUser" ;
12
15
import InventoryPage from "@/components/Inventory/Grid/Grid" ;
13
16
import EnhancedWeatherEventsComponent from "@/components/enhanced-weather-events" ;
14
17
import TopographicMap from "@/components/topographic-map" ;
15
18
16
19
const EarthView : React . FC = ( ) => {
17
- return (
20
+ return (
18
21
< div className = "min-h-screen w-full flex flex-col" >
19
- < img
20
- className = "absolute inset-0 w-full h-full object-cover"
21
- src = "/assets/Backdrops/Earth.png"
22
- />
23
- < div className = "relative min-h-screen" >
22
+ < img
23
+ className = "absolute inset-0 w-full h-full object-cover"
24
+ src = "/assets/Backdrops/Earth.png"
25
+ />
26
+ < div className = "relative min-h-screen" >
24
27
< EarthStructures />
25
- </ div >
28
+ </ div >
26
29
</ div >
27
30
) ;
28
31
} ;
29
32
30
33
export default EarthView ;
31
34
32
35
const EarthStructures : React . FC = ( ) => {
33
- return (
34
- < EarthViewLayout >
35
- < EnhancedWeatherEventsComponent />
36
- { /* <div className="w-full">
36
+ return (
37
+ < EarthViewLayout >
38
+ < EnhancedWeatherEventsComponent />
39
+ { /* <div className="w-full">
37
40
<div className="py-3">
38
41
<div className="py-1">
39
42
<PlanetarySystem />
40
43
</div>
41
44
<center><OrbitalStructuresOnPlanet /></center>
42
45
</div>
43
46
</div> */ }
44
- { /* <TopographicMap /> */ }
45
- < div className = "w-full" >
46
- < div className = "py-2" >
47
- < center > < AtmosphereStructuresOnPlanet /> </ center >
48
- </ div >
49
- </ div >
50
- < div className = "w-full" >
51
- < center >
52
- { /* <InventoryPage /> */ }
53
- < StructuresOnPlanet /> </ center >
54
- </ div >
55
- < div className = "relative flex-1" >
56
- < AllAutomatonsOnActivePlanet />
57
- </ div >
58
- </ EarthViewLayout >
59
- ) ;
47
+ { /* <TopographicMap /> */ }
48
+ < div className = "w-full" >
49
+ < div className = "py-2" >
50
+ < center >
51
+ < AtmosphereStructuresOnPlanet />
52
+ </ center >
53
+ </ div >
54
+ </ div >
55
+ < div className = "w-full" >
56
+ < center >
57
+ { /* <InventoryPage /> */ }
58
+ < StructuresOnPlanet />
59
+ </ center >
60
+ </ div >
61
+ < div className = "relative flex-1" >
62
+ < AllAutomatonsOnActivePlanet />
63
+ </ div >
64
+ </ EarthViewLayout >
65
+ ) ;
60
66
} ;
0 commit comments