import { Layout, Menu } from "antd"; import { FolderOutlined, FundViewOutlined, AlertOutlined, FilePdfOutlined, DatabaseOutlined, } from "@ant-design/icons"; import { Link, Redirect, Route, Switch, useParams } from "react-router-dom"; import TelemetryView from "./TelemetryView"; import Messages from "./Messages"; import Report from "./Report"; import Archive from "./Archive"; import Documents from "./Documents"; import LastData from "./LastData"; import { makeMenuItems } from "./Documents/menuItems"; import WellOperations from "./WellOperations"; const { Content } = Layout; export default function Well() { let { idWell, tab } = useParams(); const rootPath = `/well/${idWell}`; const { SubMenu } = Menu; return ( <> }> Мониторинг }> Сообщения }> Рапорт }> Операции по скважине }> Архив Документы } icon={} selectable={true} > {makeMenuItems(rootPath)} }> Последние данные ); }