mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-07 14:17:16 +02:00
* feat(v2): rewrite docs loading strategy * Prettify * Lint * Allow resolving from library root * minor changes, refactor * copyright header
28 lines
586 B
JavaScript
28 lines
586 B
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import styles from './styles.module.css';
|
|
|
|
export default props => {
|
|
if (props.error) {
|
|
console.log(props.error);
|
|
return <div align="center">Error</div>;
|
|
}
|
|
|
|
if (props.pastDelay) {
|
|
return (
|
|
<div className={styles.loader}>
|
|
<p>Please wait a moment</p>
|
|
<div className={styles.loaderSpinning} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return null;
|
|
};
|