Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 76x 76x 76x 47x 47x 45x 2x 76x | import React, { memo, FunctionComponent } from 'react';
import { TranslatedString } from '../../locale';
export interface LoadingNotificationProps {
isLoading: boolean;
}
const LoadingNotification: FunctionComponent<LoadingNotificationProps> = ({
isLoading,
}) => {
if (!isLoading) {
return null;
}
return (
<div className="loadingNotification">
<div className="loadingNotification-label optimizedCheckout-loadingToaster">
<div className="spinner" />
<span className="label">
<TranslatedString id="common.loading_text" />
</span>
</div>
</div>
);
};
export default memo(LoadingNotification);
|