UNPKG

@wordpress/components

Version:
31 lines (27 loc) 912 B
/** * External dependencies */ import * as Ariakit from '@ariakit/react'; /** * WordPress dependencies */ import { forwardRef } from '@wordpress/element'; /** * Internal dependencies */ import { useCompositeContext } from './context'; import { jsx as _jsx } from "react/jsx-runtime"; export const CompositeHover = forwardRef(function CompositeHover(props, ref) { var _props$store; const context = useCompositeContext(); // @ts-expect-error The store prop is undocumented and only used by the // legacy compat layer. The `store` prop is documented, but its type is // obfuscated to discourage its use outside of the component's internals. const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store; return /*#__PURE__*/_jsx(Ariakit.CompositeHover, { store: store, ...props, ref: ref }); }); //# sourceMappingURL=hover.js.map