mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 06:48:54 +00:00
20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
import React from "react";
|
|
import { isEmpty } from "lodash";
|
|
|
|
import IconToolTip from "components/IconToolTip";
|
|
|
|
interface IIconTooltipCellProps<T> {
|
|
value: string;
|
|
}
|
|
|
|
const IconTooltipCell = ({
|
|
value,
|
|
}: IIconTooltipCellProps<any>): JSX.Element | null => {
|
|
if (isEmpty(value)) {
|
|
return null;
|
|
}
|
|
|
|
return <IconToolTip text={value} issue isHtml />;
|
|
};
|
|
|
|
export default IconTooltipCell;
|