import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
/**
 * The purpose of this component is to hide the default Popup border.
 * HoverCard border implementation is in ContentContainer where it can
 * change between the default border and prism border during runtime.
 */
const CustomPopupContainer = /*#__PURE__*/React.forwardRef(({
  children,
  shouldFitContainer: _,
  shouldRenderToParent: __,
  ...props
}, ref) => /*#__PURE__*/React.createElement("div", _extends({}, props, {
  ref: ref
}), children));

/**
 * Factory function to create a CustomPopupContainer with a specific z-index
 */
export const createCustomPopupContainer = zIndex => {
  return /*#__PURE__*/React.forwardRef(({
    children,
    shouldFitContainer: _,
    shouldRenderToParent: __,
    ...props
  }, ref) => /*#__PURE__*/React.createElement("div", _extends({}, props, {
    ref: ref
  }, zIndex !== undefined && {
    style: {
      ...props.style,
      zIndex
    }
  }), children));
};
export default CustomPopupContainer;