import {Layout, Menu} from "antd"; import {Switch, useParams} from "react-router-dom"; import {makeMenuItems, makeRouteItems} from './menuItems' const { Content } = Layout export default function MenuDocuments({idWell}) { let {category} = useParams() const rootPath = `/well/${idWell}` return(<> {makeMenuItems(rootPath)} {makeRouteItems(rootPath, idWell)} ) }