/* eslint-disable react/prop-types */ import { toPairs } from "lodash"; import React from "react"; import List from "antd/lib/list"; import Card from "antd/lib/card"; import TimeAgo from "@/components/TimeAgo"; import { toHuman, prettySize } from "@/lib/utils"; export function General({ info }) { info = toPairs(info); return ( {info.length === 0 &&
No data
} {info.length > 0 && ( ( {value}}>{toHuman(name)} )} /> )}
); } export function DatabaseMetrics({ info }) { return ( {info.length === 0 &&
No data
} {info.length > 0 && ( ( {prettySize(size)}}>{name} )} /> )}
); } export function Queues({ info }) { info = toPairs(info); return ( {info.length === 0 &&
No data
} {info.length > 0 && ( ( {queue.size}}>{name} )} /> )}
); } export function Manager({ info }) { const items = info ? [ }> Last Refresh , }> Started , {info.outdatedQueriesCount}}> Outdated Queries Count , ] : []; return ( {!info &&
No data
} {info && item} />}
); }