mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
33 lines
790 B
React
33 lines
790 B
React
import React, { useContext } from "react";
|
|
import { Typography } from "antd";
|
|
|
|
import libPlugin from "@clusterio/lib/plugin";
|
|
import { notifyErrorHandler, PageLayout, ControlContext } from "@clusterio/web_ui";
|
|
import info from "../info";
|
|
|
|
import "./index.css";
|
|
|
|
const { Paragraph } = Typography;
|
|
|
|
function InventoryPage() {
|
|
// let control = useContext(ControlContext);
|
|
|
|
return <PageLayout nav={[{ name: "Inventory sync" }]}>
|
|
<h2>Inventory sync</h2>
|
|
</PageLayout>;
|
|
}
|
|
|
|
export class WebPlugin extends libPlugin.BaseWebPlugin {
|
|
async init() {
|
|
this.pages = [
|
|
{ path: "/inventory", sidebarName: "Inventory sync", content: <InventoryPage /> },
|
|
];
|
|
}
|
|
|
|
onMasterConnectionEvent(event) {
|
|
if (event === "connect") {
|
|
|
|
}
|
|
}
|
|
}
|