import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2020-2025 GoodData Corporation
import { memo } from "react";
import { DialogBase } from "./DialogBase.js";
import { Overlay } from "../Overlay/index.js";
/**
 * @internal
 */
export const Dialog = memo(function Dialog({ containerClassName, onClick, onMouseUp, onMouseOver, onClose, shouldCloseOnClick, isModal = true, alignPoints, closeOnParentScroll, closeOnEscape, closeOnMouseDrag, ...dialogProps }) {
    return (_jsx(Overlay, { isModal: isModal, positionType: "fixed", alignPoints: alignPoints ?? [
            {
                align: "cc cc",
            },
        ], containerClassName: containerClassName, onMouseUp: onMouseUp, onMouseOver: onMouseOver, onClick: onClick, closeOnOutsideClick: Boolean(shouldCloseOnClick), shouldCloseOnClick: shouldCloseOnClick, closeOnEscape: closeOnEscape, closeOnParentScroll: closeOnParentScroll, closeOnMouseDrag: closeOnMouseDrag, onClose: onClose, children: _jsx(DialogBase, { ...dialogProps, isModal: isModal, onClose: onClose }) }));
});
//# sourceMappingURL=Dialog.js.map