PageLoader.tsx 662 B

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import cx from 'classnames';
  3. interface Props {
  4. fullHeight: boolean;
  5. }
  6. const PageLoader: React.FC<Partial<Props>> = ({ fullHeight }) => (
  7. <section
  8. className={cx(
  9. 'hero',
  10. fullHeight ? 'is-fullheight-with-navbar' : 'is-halfheight'
  11. )}
  12. >
  13. <div
  14. className="hero-body has-text-centered"
  15. style={{ justifyContent: 'center' }}
  16. >
  17. <div style={{ width: 300 }}>
  18. <div className="subtitle">Loading...</div>
  19. <progress
  20. className="progress is-small is-primary is-inline-block"
  21. max="100"
  22. />
  23. </div>
  24. </div>
  25. </section>
  26. );
  27. export default PageLoader;