mirror of https://github.com/portainer/portainer
27 lines
614 B
TypeScript
27 lines
614 B
TypeScript
|
import clsx from 'clsx';
|
||
|
|
||
|
import styles from './ViewLoading.module.css';
|
||
|
|
||
|
interface Props {
|
||
|
message?: string;
|
||
|
}
|
||
|
|
||
|
export function ViewLoading({ message }: Props) {
|
||
|
return (
|
||
|
<div className={clsx('row', styles.root)}>
|
||
|
<div className="sk-fold">
|
||
|
<div className="sk-fold-cube" />
|
||
|
<div className="sk-fold-cube" />
|
||
|
<div className="sk-fold-cube" />
|
||
|
<div className="sk-fold-cube" />
|
||
|
</div>
|
||
|
{message && (
|
||
|
<span className={styles.message}>
|
||
|
{message}
|
||
|
<i className="fa fa-cog fa-spin space-left" />
|
||
|
</span>
|
||
|
)}
|
||
|
</div>
|
||
|
);
|
||
|
}
|