import { useAppStore } from "@app/core/stores/appStore.js"; import { useDeviceStore } from "@app/core/stores/deviceStore.js"; import { Button } from "@components/UI/Button.js"; import { Separator } from "@components/UI/Seperator.js"; import { H3 } from "@components/UI/Typography/H3.js"; import { Subtle } from "@components/UI/Typography/Subtle.js"; import { BluetoothIcon, CalendarIcon, ListPlusIcon, MapPinIcon, NetworkIcon, PlusIcon, UsbIcon, UsersIcon, } from "lucide-react"; import { useMemo } from "react"; export const Dashboard = () => { const { setConnectDialogOpen } = useAppStore(); const { getDevices } = useDeviceStore(); const devices = useMemo(() => getDevices(), [getDevices]); return (

Connected Devices

Manage, connect and disconnect devices
{devices.length ? (
    {devices.map((device) => { return (
  • {device.nodes.get(device.hardware.myNodeNum)?.user ?.longName ?? "UNK"}

    {device.connection?.connType === "ble" && ( <> BLE )} {device.connection?.connType === "serial" && ( <> Serial )} {device.connection?.connType === "http" && ( <> Network )}
  • ); })}
) : (

No Devices

Connect atleast one device to get started
)}
); };