You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
452 B
19 lines
452 B
import type React from "react";
|
|
|
|
import { Pane } from "evergreen-ui";
|
|
import JSONPretty from "react-json-pretty";
|
|
|
|
import { useDevice } from "@app/core/stores/deviceStore.js";
|
|
|
|
export const InfoPage = (): JSX.Element => {
|
|
const { hardware, nodes } = useDevice();
|
|
|
|
const myNode = nodes.find((n) => n.data.num === hardware.myNodeNum);
|
|
|
|
return (
|
|
<Pane>
|
|
<JSONPretty data={myNode} />
|
|
<JSONPretty data={hardware} />
|
|
</Pane>
|
|
);
|
|
};
|
|
|