import React from "react";
import { Typography, Box, CircularProgress } from "@mui/material";
import PropTypes from "prop-types";
function Loading(props) {
  const {
    label,
    icon = /*#__PURE__*/React.createElement(CircularProgress, {
      size: 18
    })
  } = props;
  return /*#__PURE__*/React.createElement(Box, {
    sx: {
      display: "flex",
      gap: 1,
      alignItems: "center",
      my: 2
    }
  }, icon, label && /*#__PURE__*/React.createElement(Typography, null, label));
}
Loading.propTypes = {
  label: PropTypes.node,
  icon: PropTypes.node
};
export default Loading;
//# sourceMappingURL=Loading.js.map