-
Alberto Gasparin authoredAlberto Gasparin authored
AppBackground.js 886 B
import React from 'react';
import { css } from 'glamor';
import AnimatedLoading from '../icons/AnimatedLoading';
import { colors } from '../style';
import Background from './Background';
import { View, Block } from './common';
function AppBackground({ initializing, loadingText }) {
return (
<>
<Background />
{(loadingText != null || initializing) && (
<View
{...css({
position: 'absolute',
top: 0,
left: 0,
right: 0,
padding: 50,
paddingTop: 200,
color: colors.n1,
alignItems: 'center',
})}
>
<Block style={{ marginBottom: 20, fontSize: 18 }}>
{loadingText}
</Block>
<AnimatedLoading width={25} color={colors.n1} />
</View>
)}
</>
);
}
export default AppBackground;