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