import React from "react"; import { DEFAULT_EMPTY_CELL_VALUE } from "utilities/constants"; import Icon from "components/Icon"; import NotSupported from "components/NotSupported"; import TooltipWrapper from "components/TooltipWrapper"; import { IHost } from "interfaces/host"; const baseClass = "host-mdm-status-cell"; const HostMdmStatusCell = ({ row: { original: { mdm, platform }, }, cell: { value }, }: { row: { original: IHost }; cell: { value: string }; }): JSX.Element => { if (platform === "chrome") { return NotSupported; } if (!value) { return {DEFAULT_EMPTY_CELL_VALUE}; } return ( {value} {mdm?.dep_profile_error && ( Fleet hit Apple's API rate limit when preparing the macOS Setup Assistant for this host. Fleet will try again every hour. } position="top" underline={false} showArrow tipOffset={8} > )} ); }; export default HostMdmStatusCell;