bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/loading-screen/component.jsx

21 lines
519 B
React
Raw Normal View History

2017-07-14 22:18:07 +08:00
import React from 'react';
2021-10-29 01:58:04 +08:00
import Styled from './styles';
import Settings from '/imports/ui/services/settings';
const { animations } = Settings.application;
2016-07-29 03:49:16 +08:00
2017-07-14 22:18:07 +08:00
const LoadingScreen = ({ children }) => (
2021-10-29 01:58:04 +08:00
<Styled.Background>
<Styled.Spinner animations={animations}>
<Styled.Bounce1 animations={animations} />
<Styled.Bounce2 animations={animations} />
2018-12-10 09:08:16 +08:00
<div />
2021-10-29 01:58:04 +08:00
</Styled.Spinner>
<Styled.Message>
2017-07-14 22:18:07 +08:00
{children}
2021-10-29 01:58:04 +08:00
</Styled.Message>
</Styled.Background>
2017-07-14 22:18:07 +08:00
);
2016-07-29 03:49:16 +08:00
export default LoadingScreen;