/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../../_virtual/_rolldown/runtime.cjs");
const require_styles_styler = require("../../../styles/styler.cjs");
const require_components_HStack = require("../../HStack.cjs");
const require_components_client_Modal_ModalContext = require("./ModalContext.cjs");
const require_components_client_Modal_UDSModalConfigProvider = require("./UDSModalConfigProvider.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/client/Modal/ModalActions.tsx
const ModalActions = ({ children, asChild = void 0, startContent, slotProps }) => {
	const { size } = require_components_client_Modal_UDSModalConfigProvider.useModalConfig();
	const { hasContent, shouldRenderHeader } = require_components_client_Modal_ModalContext.useInternalModalContext();
	const classNames = {
		actions: require_styles_styler.getStyles({
			modalSizeSpacingHorizontal: size,
			modalSizeActions: size,
			flexDirection: "row-reverse",
			justifyContent: "space-between",
			alignItems: "center"
		}),
		actionsInner: require_styles_styler.getStyles({
			flexDirection: "row-reverse",
			alignItems: "center",
			className: require_styles_styler.cx("gap-[inherit]")
		}),
		startContent: require_styles_styler.getStyles({
			alignItems: "center",
			className: require_styles_styler.cx("gap-[inherit]")
		})
	};
	return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_HStack.HStack, {
		...slotProps?.root,
		className: require_styles_styler.cx(classNames.actions, slotProps?.root?.className),
		style: {
			paddingTop: !hasContent && shouldRenderHeader ? 0 : void 0,
			...slotProps?.root?.style
		},
		children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_HStack.HStack, {
			asChild,
			...slotProps?.actionsInner,
			className: require_styles_styler.cx(classNames.actionsInner, slotProps?.actionsInner?.className),
			children
		}), startContent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_HStack.HStack, {
			...slotProps?.startContent,
			className: require_styles_styler.cx(classNames.startContent, slotProps?.startContent?.className),
			children: startContent
		})]
	});
};
ModalActions.displayName = "ModalActions";
ModalActions.__modalSlot = "actions";
//#endregion
exports.ModalActions = ModalActions;
