25 lines
601 B
TypeScript
25 lines
601 B
TypeScript
import { useEffect } from "react";
|
|||
|
|
import { FloorPlan } from "./components/FloorPlan";
|
||
|
|
import { HeaderBar } from "./components/HeaderBar";
|
||
|
|
import { SidePanel } from "./components/SidePanel";
|
||
|
|
import { startRuntime } from "./sim/runtime";
|
||
|
|
import { useOfficeStore } from "./store/office-store";
|
||
|
|
|
||
|
|
export default function App() {
|
||
|
|
const theme = useOfficeStore((s) => s.theme);
|
||
|
|
|
||
|
|
useEffect(() => {
|
||
|
|
startRuntime();
|
||
|
|
}, []);
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className={`app ${theme}`}>
|
||
|
|
<HeaderBar />
|
||
|
|
<div className="main-row">
|
||
|
|
<FloorPlan />
|
||
|
|
<SidePanel />
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|