fleet/frontend/components/TableContainer/DataTable/IconTooltipCell/IconTooltipCell.tsx
RachelElysia ad3ed4210f
Host Details Page: Software Inventory Searchable (#1390)
* Refactored Software inventory table to use TableContainer
* Add search, reordering, IconTooltipCell
2021-07-15 10:01:52 -07:00

22 lines
421 B
TypeScript

import React from "react";
import { isEmpty } from "lodash";
import IconToolTip from "components/IconToolTip";
interface IIconTooltipCellProps<T> {
value: string;
}
const IconTooltipCell = (
props: IIconTooltipCellProps<any>
): JSX.Element | null => {
const { value } = props;
if (isEmpty(value)) {
return null;
}
return <IconToolTip text={value} issue isHtml />;
};
export default IconTooltipCell;