import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import { forwardRef } from "react";
import { dialogContainer } from "./styles.js";
/**
 * @since 6.0.0
 * @internal
 */ export const DialogContainer = /*#__PURE__*/ forwardRef(function DialogContainer(props, ref) {
    const { enabled, centered, displayNone, children, className, ...remaining } = props;
    if (!enabled) {
        return /*#__PURE__*/ _jsx(_Fragment, {
            children: children
        });
    }
    return /*#__PURE__*/ _jsx("div", {
        ...remaining,
        ref: ref,
        className: dialogContainer({
            className,
            centered,
            displayNone
        }),
        children: children
    });
});

//# sourceMappingURL=DialogContainer.js.map