123456789101112131415161718192021222324252627282930 |
- import React from 'react';
- import cx from 'classnames';
- interface Props {
- fullHeight: boolean;
- }
- const PageLoader: React.FC<Partial<Props>> = ({ fullHeight }) => (
- <section
- className={cx(
- 'hero',
- fullHeight ? 'is-fullheight-with-navbar' : 'is-halfheight'
- )}
- >
- <div
- className="hero-body has-text-centered"
- style={{ justifyContent: 'center' }}
- >
- <div style={{ width: 300 }}>
- <div className="subtitle">Loading...</div>
- <progress
- className="progress is-small is-primary is-inline-block"
- max="100"
- />
- </div>
- </div>
- </section>
- );
- export default PageLoader;
|