LeRobot.js / src /demo /App.tsx
NERDDISCO's picture
feat: added react / tailwind ui
0d9f1af
raw
history blame
592 Bytes
import React, { useState } from "react";
import { Home } from "./pages/Home";
import { ErrorBoundary } from "./components/ErrorBoundary";
import type { ConnectedRobot } from "./types";
export function App() {
const [connectedRobots, setConnectedRobots] = useState<ConnectedRobot[]>([]);
return (
<ErrorBoundary>
<div className="min-h-screen bg-background">
<Home
onGetStarted={() => {}} // No longer needed
connectedRobots={connectedRobots}
onConnectedRobotsChange={setConnectedRobots}
/>
</div>
</ErrorBoundary>
);
}