import CardWrapper from '@/components/card-wrapper'; import LiquidChart from '@/components/charts/liquid'; import PageTools from '@/components/page-tools'; import breakpoints from '@/config/breakpoints'; import useWindowResize from '@/hooks/use-window-resize'; import { Col, DatePicker, Row } from 'antd'; import { useEffect, useState } from 'react'; import ResourceUtilization from './resource-utilization'; const SystemLoad = () => { const colors = [ 'linear-gradient(90deg, rgba(84, 204, 152,.8) 0%, rgba(84, 204, 152,0.5) 50%, rgba(84, 204, 152,.8) 100%)', 'linear-gradient(90deg, rgba(255, 214, 102,.8) 0%, rgba(255, 214, 102,0.5) 50%, rgba(255, 214, 102,.8) 100%)', 'linear-gradient(90deg, rgba(255, 120, 117,.8) 0%, rgba(255, 120, 117,0.5) 50%, rgba(255, 120, 117,.8) 100%)' ]; const { size } = useWindowResize(); const [paddingRight, setPaddingRight] = useState('20px'); const [smallChartHeight, setSmallChartHeight] = useState(190); const [largeChartHeight, setLargeChartHeight] = useState(400); const thresholds = [0.5, 0.7, 1]; const height = 400; const handleSelectDate = (date: string) => {}; useEffect(() => { if (size.width < breakpoints.xl) { setPaddingRight('0'); } else { setPaddingRight('20px'); } }, [size.width]); return (
System Load } right={ } />
); }; export default SystemLoad;