Spaces:
Running
Running
File size: 538 Bytes
130ae50 |
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>
);
}
|