Spaces:
Running
Running
File size: 538 Bytes
2aa0afa 0d9f1af b664dbe 0d9f1af 5eb1bc0 0d9f1af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import { useState } from "react";
import { Home } from "./pages/Home";
import { ErrorBoundary } from "./components/ErrorBoundary";
import type { RobotConnection } from "@lerobot/web";
export function App() {
const [connectedRobots, setConnectedRobots] = useState<RobotConnection[]>([]);
return (
<ErrorBoundary>
<div className="min-h-screen bg-background">
<Home
connectedRobots={connectedRobots}
onConnectedRobotsChange={setConnectedRobots}
/>
</div>
</ErrorBoundary>
);
}
|