You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
805 B
41 lines
805 B
4 years ago
|
import PropTypes from 'prop-types';
|
||
|
import React from 'react';
|
||
|
import SpinnerIcon from 'Components/SpinnerIcon';
|
||
|
import { icons } from 'Helpers/Props';
|
||
|
import styles from './SearchFooterLabel.css';
|
||
|
|
||
|
function SearchFooterLabel(props) {
|
||
|
const {
|
||
|
className,
|
||
|
label,
|
||
|
isSaving
|
||
|
} = props;
|
||
|
|
||
|
return (
|
||
|
<div className={className}>
|
||
|
{label}
|
||
|
|
||
|
{
|
||
|
isSaving &&
|
||
|
<SpinnerIcon
|
||
|
className={styles.savingIcon}
|
||
|
name={icons.SPINNER}
|
||
|
isSpinning={true}
|
||
|
/>
|
||
|
}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
SearchFooterLabel.propTypes = {
|
||
|
className: PropTypes.string.isRequired,
|
||
|
label: PropTypes.string.isRequired,
|
||
|
isSaving: PropTypes.bool.isRequired
|
||
|
};
|
||
|
|
||
|
SearchFooterLabel.defaultProps = {
|
||
|
className: styles.label
|
||
|
};
|
||
|
|
||
|
export default SearchFooterLabel;
|