2024-06-18 22:39:58 +03:30
|
|
|
import React, { useEffect, useState } from "react";
|
|
|
|
|
import Host from "../../Components/Host";
|
|
|
|
|
import HostStatus from "../../Components/HostStatus";
|
|
|
|
|
import HostActions from "../../Components/HostActions";
|
|
|
|
|
import BarChart from "../../Components/Charts/BarChart/BarChart";
|
|
|
|
|
import Button from "../../Components/Button";
|
|
|
|
|
import ServerStatus from "../../Components/Charts/Servers/ServerStatus";
|
|
|
|
|
import CurrentMonitors from "../../Components/CurrentMonitors";
|
2024-06-19 10:33:10 +03:30
|
|
|
import MockData from "../../Mock/sample_data.json";
|
2024-06-18 22:39:58 +03:30
|
|
|
|
2024-06-21 11:08:31 -07:00
|
|
|
const CurrentStats = ({ monitors }) => {
|
2024-06-18 22:39:58 +03:30
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<div className="monitors-gaps-medium"></div>
|
|
|
|
|
<div className="monitors-gaps-medium"></div>
|
|
|
|
|
<div className="monitors-bar">
|
|
|
|
|
<div className="monitors-bar-title">Hello, Jackie</div>
|
|
|
|
|
<Button
|
|
|
|
|
level="primary"
|
|
|
|
|
label="Create new monitor"
|
|
|
|
|
sx={{ padding: "10px 20px", fontSize: "13px" }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="monitors-gaps-medium"></div>
|
|
|
|
|
<div className="monitors-stats">
|
|
|
|
|
<ServerStatus title="Up" value="4" state="up" />
|
|
|
|
|
<ServerStatus title="Down" value="0" state="down" />
|
|
|
|
|
<ServerStatus title="Paused" value="0" state="pause" />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="monitors-gaps-medium"></div>
|
|
|
|
|
<CurrentMonitors monitors={monitors} />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default CurrentStats;
|