import React from "react"; import Icon from "components/Icon"; import TooltipWrapper from "components/TooltipWrapper"; 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 report. ) : ( <> This host might take up to
{distributedInterval} seconds to respond. )} } position="top" underline={false} showArrow tipOffset={8} >
); }; export default LiveQueryIssueCell;