import type React from "react"; import { useEffect, useState } from "react"; import { GeolocationIcon, Pane, PropertyIcon, SideSheet } from "evergreen-ui"; import { Node, useDevice } from "@app/core/stores/deviceStore.js"; import { Hashicon } from "@emeraldpay/hashicon-react"; import { Protobuf } from "@meshtastic/meshtasticjs"; import { SlideSheetTabbedContent } from "../layout/page/SlideSheetTabbedContent.js"; import type { TabType } from "../layout/page/TabbedContent.js"; import { Location } from "./tabs/nodes/Location.js"; import { Overview } from "./tabs/nodes/Overview.js"; export const PeerInfo = () => { const { peerInfoOpen, activePeer, setPeerInfoOpen, nodes } = useDevice(); const [selectedTab, setSelectedTab] = useState(0); const [node, setNode] = useState(); useEffect(() => { setNode(nodes.find((n) => n.data.num === activePeer)); }, [nodes, activePeer]); const tabs: TabType[] = [ { name: "Info", icon: PropertyIcon, element: () => , }, { name: "Location", icon: GeolocationIcon, element: () => , }, ]; return ( { setPeerInfoOpen(false); }} containerProps={{ display: "flex", flex: "1", flexDirection: "column", }} > } /> ); };