import React from 'react'; import { format } from '../../services/time/timeService'; import { Button, Card, Col, Row, Toast } from '@douyinfe/semi-ui'; import { IconClock, IconDoubleChevronLeft, IconDoubleChevronRight, IconPlayCircle, IconSearch, } from '@douyinfe/semi-icons'; import { xhrPost } from '../../services/xhr.js'; import './ProsessingTimes.less'; import { useScreenWidth } from '../../hooks/screenWidth.js'; function InfoCard({ title, value, icon }) { const { Meta } = Card; return (
); } export default function ProcessingTimes({ processingTimes = {} }) { if (Object.keys(processingTimes).length === 0) { return null; } const width = useScreenWidth(); const invisible = width <= 1180; if (invisible) { return null; } return ( } /> {processingTimes.lastRun && ( <> } value={format(processingTimes.lastRun)} /> } value={format(processingTimes.lastRun + processingTimes.interval * 60000)} /> )} } value={ } /> ); }