import React, { useCallback } from "react";
import { Tooltip as BaseTooltip } from "@netdata/netdata-ui";
import getContent from "./getContent";
const Tooltip = ({ children, content, isBasic, ...rest }) => {
    const getTooltipContent = useCallback(() => getContent(content, { isBasic }), [content, isBasic]);
    return (React.createElement(BaseTooltip, Object.assign({ plain: true, animation: true, content: getTooltipContent }, rest), children));
};
export default Tooltip;
//# sourceMappingURL=index.js.map