import React from "react"; import ReactTooltip from "react-tooltip"; import Icon from "components/Icon"; import { COLORS } from "styles/var/colors"; interface ILiveQueryIssueCellProps { displayName: string; distributedInterval: number; status: string; rowId: number; } const LiveQueryIssueCell = ({ displayName, distributedInterval, status, rowId, }: ILiveQueryIssueCellProps): JSX.Element => { if (distributedInterval < 60 && status === "online") { return <>{displayName}; } return ( <> {displayName}{" "} {status === "offline" ? ( <> Offline hosts will not
respond to a live query. ) : ( <> This host might take up to
{distributedInterval} seconds to respond. )}
); }; export default LiveQueryIssueCell;