import { jsx } from "react/jsx-runtime";
import { CircularProgress } from "@mui/material";
const sizeMapping = {
    xs: 12,
    s: 16,
    m: 24,
    l: 32,
    xl: 44,
    xxl: 72
};
function ApProgressSpinner(props) {
    const { size = 'm', color = 'primary', 'aria-label': ariaLabel = 'Loading' } = props;
    return /*#__PURE__*/ jsx(CircularProgress, {
        size: sizeMapping[size],
        color: color,
        "aria-label": ariaLabel,
        "data-testid": "ap-progress-spinner",
        "data-size": size
    });
}
export { ApProgressSpinner };
