"use client";
import { useProps } from "../../../core/MantineProvider/use-props/use-props.mjs";
import { createContext } from "react";
import { jsx } from "react/jsx-runtime";
import { FloatingDelayGroup } from "@floating-ui/react";
//#region packages/@mantine/core/src/components/HoverCard/HoverCardGroup/HoverCardGroup.tsx
const HoverCardGroupContext = createContext({ withinGroup: false });
const defaultProps = {
	openDelay: 0,
	closeDelay: 0
};
function HoverCardGroup(props) {
	const { openDelay, closeDelay, children } = useProps("HoverCardGroup", defaultProps, props);
	return /* @__PURE__ */ jsx(HoverCardGroupContext, {
		value: { withinGroup: true },
		children: /* @__PURE__ */ jsx(FloatingDelayGroup, {
			delay: {
				open: openDelay,
				close: closeDelay
			},
			children
		})
	});
}
HoverCardGroup.displayName = "@mantine/core/HoverCardGroup";
HoverCardGroup.extend = (c) => c;
//#endregion
export { HoverCardGroup, HoverCardGroupContext };

//# sourceMappingURL=HoverCardGroup.mjs.map