Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function TooltipAdapter(props) {
return (
{adapterProps => (
<div>
{(instance, value) => (value ? instance.open() : instance.close())}
</div>
{props.children}
)}
);
}
TooltipAdapter.propTypes = {
anchorPoint: PropTypes.oneOf(HIG.Tooltip.AvailableAnchorPoints),
onClickOutside: PropTypes.func,
open: PropTypes.bool,
target: PropTypes.node,
content: PropTypes.string,
children: PropTypes.node
};
export default TooltipAdapter;