@codecademy/gamut
73.6.173.6.2-alpha.3e37cd.0
dist/Tip/shared/InlineTip.js~
dist/Tip/shared/InlineTip.jsModified+3−1
Index: package/dist/Tip/shared/InlineTip.js
===================================================================
--- package/dist/Tip/shared/InlineTip.js
+++ package/dist/Tip/shared/InlineTip.js
@@ -23,9 +23,10 @@
truncateLines,
type,
username,
wrapperRef,
- zIndex
+ zIndex,
+ ...rest
}) => {
const isHoverType = type === 'tool' || type === 'preview';
const [isDismissed, setIsDismissed] = useState(false);
const handleClick = useCallback(() => {
@@ -95,8 +96,9 @@
}) : info
})
});
return /*#__PURE__*/_jsx(InlineTipWrapper, {
+ ...rest,
...tipWrapperProps,
onMouseEnter: isHoverType ? handleMouseEnterAndLeave : undefined,
onMouseLeave: isHoverType ? handleMouseEnterAndLeave : undefined,
children: alignment.includes('top') ? /*#__PURE__*/_jsxs(_Fragment, {