import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2007-2025 GoodData Corporation
import { useMemo } from "react";
import cx from "classnames";
/**
 * @internal
 */
export function LoadingMask({ className, height, width, size }) {
    const style = useMemo(() => ({
        width,
        height,
    }), [width, height]);
    const spinnerSize = size || "large";
    return (_jsx("div", { style: style, "aria-label": "loading", className: cx("s-isLoading", "loading-mask", className), children: _jsx("div", { className: cx("gd-spinner", spinnerSize) }) }));
}
