import CircularProgress from "@mui/material/CircularProgress"; import PropTypes from "prop-types"; import styles from "./Progress.module.scss"; const Progress = ({ button }) => { return ( <> {button ? ( ) : (
)} ); }; Progress.propTypes = { button: PropTypes.bool, }; Progress.defaultProps = { button: false, }; export default Progress;