mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
27 lines
680 B
TypeScript
27 lines
680 B
TypeScript
import React from 'react';
|
|
|
|
import PageTitle from 'ui/shared/Page/PageTitle';
|
|
|
|
import UptimeCharts from './UptimeCharts';
|
|
import UptimeStats from './UptimeStats';
|
|
import UptimeStatus from './UptimeStatus';
|
|
import useUptimeSocketData from './useUptimeSocketData';
|
|
|
|
const Uptime = () => {
|
|
|
|
const { realtimeData, historyData, status, onReconnect } = useUptimeSocketData();
|
|
|
|
return (
|
|
<>
|
|
<PageTitle
|
|
title="Uptime"
|
|
contentAfter={ <UptimeStatus status={ status } onReconnect={ onReconnect }/> }
|
|
/>
|
|
<UptimeStats realtimeData={ realtimeData }/>
|
|
<UptimeCharts historyData={ historyData }/>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default React.memo(Uptime);
|