import React from 'react'; import { Card } from 'reactstrap'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { faCircleNotch as preloader } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; const propTypes = { noMargin: PropTypes.bool, loading: PropTypes.bool, children: PropTypes.node, }; const MutedMessage = ({ children, loading = false, noMargin = false }) => { const cardClasses = classNames('bg-light', { 'mt-4': !noMargin, }); return (

{loading && } {loading && !children && Loading...} {children}

); }; MutedMessage.propTypes = propTypes; export default MutedMessage;