mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
21 lines
390 B
TypeScript
21 lines
390 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 => {
|
|
if (isEmpty(value)) {
|
|
return <></>;
|
|
}
|
|
|
|
return <IconToolTip text={value} issue isHtml />;
|
|
};
|
|
|
|
export default IconTooltipCell;
|