LeRobot.js / src /demo /App.tsx
NERDDISCO's picture
feat(web): update demo to use latest lib
2aa0afa
raw
history blame
566 Bytes
import { useState } from "react";
import { Home } from "./pages/Home";
import { ErrorBoundary } from "./components/ErrorBoundary";
import type { RobotConnection } from "../lerobot/web/types/robot-connection.js";
export function App() {
const [connectedRobots, setConnectedRobots] = useState<RobotConnection[]>([]);
return (
<ErrorBoundary>
<div className="min-h-screen bg-background">
<Home
connectedRobots={connectedRobots}
onConnectedRobotsChange={setConnectedRobots}
/>
</div>
</ErrorBoundary>
);
}