mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
* Refactored Software inventory table to use TableContainer * Add search, reordering, IconTooltipCell
22 lines
421 B
TypeScript
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;
|