import PropTypes from 'prop-types'; import React from 'react'; import SpinnerIcon from 'Components/SpinnerIcon'; import { icons } from 'Helpers/Props'; import styles from './CollectionFooterLabel.css'; function CollectionFooterLabel(props) { const { className, label, isSaving } = props; return (
{label} { isSaving && }
); } CollectionFooterLabel.propTypes = { className: PropTypes.string.isRequired, label: PropTypes.string.isRequired, isSaving: PropTypes.bool.isRequired }; CollectionFooterLabel.defaultProps = { className: styles.label }; export default CollectionFooterLabel;