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
835 B
41 lines
835 B
7 years ago
|
import PropTypes from 'prop-types';
|
||
|
import React from 'react';
|
||
|
import { icons } from 'Helpers/Props';
|
||
|
import SpinnerIcon from 'Components/SpinnerIcon';
|
||
7 years ago
|
import styles from './ArtistEditorFooterLabel.css';
|
||
7 years ago
|
|
||
7 years ago
|
function ArtistEditorFooterLabel(props) {
|
||
7 years ago
|
const {
|
||
|
className,
|
||
|
label,
|
||
|
isSaving
|
||
|
} = props;
|
||
|
|
||
|
return (
|
||
|
<div className={className}>
|
||
|
{label}
|
||
|
|
||
|
{
|
||
|
isSaving &&
|
||
|
<SpinnerIcon
|
||
|
className={styles.savingIcon}
|
||
|
name={icons.SPINNER}
|
||
|
isSpinning={true}
|
||
|
/>
|
||
|
}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
7 years ago
|
ArtistEditorFooterLabel.propTypes = {
|
||
7 years ago
|
className: PropTypes.string.isRequired,
|
||
|
label: PropTypes.string.isRequired,
|
||
|
isSaving: PropTypes.bool.isRequired
|
||
|
};
|
||
|
|
||
7 years ago
|
ArtistEditorFooterLabel.defaultProps = {
|
||
7 years ago
|
className: styles.label
|
||
|
};
|
||
|
|
||
7 years ago
|
export default ArtistEditorFooterLabel;
|