Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 1 addition & 43 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,4 @@
import { KeyboardNavigation } from "@/components/KeyboardNavigation"

const Scene = dynamic(() => import("@/components/Scene").then((m) => ({ default: m.Scene })), {
ssr: false,
})

import { useEffect } from "react"
import { useAppState } from "@/lib/store"

export default function Home({ initialObjectId }: { initialObjectId?: string | null }) {
const { setFocusedObjectId } = useAppState()

useEffect(() => {
if (initialObjectId) {
setFocusedObjectId(initialObjectId)
}
}, [initialObjectId, setFocusedObjectId])

return (
<main
style={{
position: "relative",
width: "100%",
height: "100%",
overflow: "hidden",
background: "#000005",
}}
>
{/* Background 3D Space Scene */}
<Scene />

{/* HUD UI Layout Components */}
<Header />
<LeftSidebar />
<RightSidebar />
<AgentTerminal />
<Toasts />

{/* Floating Asteroid Inspector */}
<AsteroidCard />

{/* Global Keyboard Navigation */}
<KeyboardNavigation />
</main>
)
}
.catch(err => console.error(err))

Check failure on line 14 in src/app/page.tsx

View workflow job for this annotation

GitHub Actions / typecheck

'}' expected.

Check failure on line 14 in src/app/page.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Identifier expected.
Loading