import { Layout, Menu } from "antd";
import { Link, Switch, Route, Redirect, useParams } from "react-router-dom";
import { useState, useEffect } from "react";
import ClusterWells from "./ClusterWells";
import ClusterSections from "./ClusterSections";
import LoaderPortal from "../../components/LoaderPortal";
import { invokeWebApiWrapperAsync } from "../../components/factory";
import { WellOperationStatService } from "../../services/api";
const { Content } = Layout;
export default function Cluster() {
let { idClaster, tab } = useParams();
const [data, setData] = useState([]);
const [showLoader, setShowLoader] = useState(false);
useEffect(() => {
invokeWebApiWrapperAsync(
async () => {
const clusterData = await WellOperationStatService.getStatCluster(
idClaster
);
setData(clusterData ?? []);
},
setShowLoader,
`Не удалось загрузить данные по кусту "${idClaster}"`
);
}, [idClaster]);
return (
<>
>
);
}