2019-03-06 21:36:54 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { Component } from '@wordpress/element';
|
2019-03-06 22:16:38 +00:00
|
|
|
import PropTypes from 'prop-types';
|
2019-03-06 21:36:54 +00:00
|
|
|
|
|
|
|
class StoreAlertsPlaceholder extends Component {
|
|
|
|
render() {
|
|
|
|
const { hasMultipleAlerts } = this.props;
|
|
|
|
|
|
|
|
return (
|
2020-02-14 02:23:21 +00:00
|
|
|
<div
|
|
|
|
className="woocommerce-card woocommerce-store-alerts is-loading"
|
|
|
|
aria-hidden
|
|
|
|
>
|
2019-03-06 21:36:54 +00:00
|
|
|
<div className="woocommerce-card__header">
|
|
|
|
<div className="woocommerce-card__title woocommerce-card__header-item">
|
|
|
|
<span className="is-placeholder" />
|
|
|
|
</div>
|
|
|
|
{ hasMultipleAlerts && (
|
|
|
|
<div className="woocommerce-card__action woocommerce-card__header-item">
|
|
|
|
<span className="is-placeholder" />
|
|
|
|
</div>
|
|
|
|
) }
|
|
|
|
</div>
|
|
|
|
<div className="woocommerce-card__body">
|
|
|
|
<div className="woocommerce-store-alerts__message">
|
|
|
|
<span className="is-placeholder" />
|
|
|
|
<span className="is-placeholder" />
|
|
|
|
</div>
|
|
|
|
<div className="woocommerce-store-alerts__actions">
|
|
|
|
<span className="is-placeholder" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default StoreAlertsPlaceholder;
|
2019-03-06 22:16:38 +00:00
|
|
|
|
|
|
|
StoreAlertsPlaceholder.propTypes = {
|
|
|
|
/**
|
|
|
|
* Whether multiple alerts exists.
|
|
|
|
*/
|
|
|
|
hasMultipleAlerts: PropTypes.bool,
|
|
|
|
};
|
|
|
|
|
|
|
|
StoreAlertsPlaceholder.defaultProps = {
|
|
|
|
hasMultipleAlerts: false,
|
|
|
|
};
|