"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
require("react");
const createEventHandler = require("../../../core/utils/create-event-handler/create-event-handler.cjs");
require("clsx");
const useProps = require("../../../core/MantineProvider/use-props/use-props.cjs");
const Popover = require("../../Popover/Popover.cjs");
const HoverCard_context = require("../HoverCard.context.cjs");
const defaultProps = {};
function HoverCardDropdown(props) {
  const { children, onMouseEnter, onMouseLeave, ...others } = useProps.useProps(
    "HoverCardDropdown",
    defaultProps,
    props
  );
  const ctx = HoverCard_context.useHoverCardContext();
  const handleMouseEnter = createEventHandler.createEventHandler(onMouseEnter, ctx.openDropdown);
  const handleMouseLeave = createEventHandler.createEventHandler(onMouseLeave, ctx.closeDropdown);
  return /* @__PURE__ */ jsxRuntime.jsx(Popover.Popover.Dropdown, { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ...others, children });
}
HoverCardDropdown.displayName = "@mantine/core/HoverCardDropdown";
exports.HoverCardDropdown = HoverCardDropdown;
