"use client"; import { Settings, Gamepad2, Trash2, Pencil, Plus, ExternalLink, } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card, CardFooter } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { cn } from "@/lib/utils"; import HudCorners from "@/components/hud-corners"; import type { RobotConnection } from "@/types/robot"; interface DeviceDashboardProps { robots: RobotConnection[]; onCalibrate: (robot: RobotConnection) => void; onTeleoperate: (robot: RobotConnection) => void; onRemove: (robotId: string) => void; onEdit: (robot: RobotConnection) => void; onFindNew: () => void; isConnecting: boolean; onScrollToHardware: () => void; } export function DeviceDashboard({ robots, onCalibrate, onTeleoperate, onRemove, onEdit, onFindNew, isConnecting, onScrollToHardware, }: DeviceDashboardProps) { return (

device registry

currently supports SO-100{" "}
{robots.length > 0 && ( )}
{robots.length === 0 ? (
{isConnecting ? ( <>

scanning for units

searching for available devices...

) : ( <>

no units detected

)}
) : (
{robots.map((robot) => (

{robot.name}

{robot.serialNumber} {robot.robotType}
{robot.isConnected ? "ONLINE" : "OFFLINE"}
status:
{robot.isConnected ? "operational" : "disconnected"}
type:
{robot.robotType}
))}
)}
); }