import { ContactShadows, Environment } from "@react-three/drei"; import { Canvas } from "@react-three/fiber"; import type { WorldSnapshot } from "../types"; import { KeyboardOrbitControls } from "./KeyboardOrbitControls"; import { WorldView } from "./WorldView"; type WorldSimulatorSceneProps = { snapshot: WorldSnapshot | null; selectedId: string | null; onSelectEntity: (id: string | null) => void; }; export function WorldSimulatorScene({ snapshot, selectedId, onSelectEntity, }: WorldSimulatorSceneProps) { return ( { if (event.type === "click") { onSelectEntity(null); } }} > {snapshot ? ( ) : ( )} ); } function LoadingTerrain() { return ( ); }