import CloudDownloadIcon from '@mui/icons-material/CloudDownload' import { Container, SvgIcon, Typography, styled } from '@mui/material' import { activeDownloadsState } from '../atoms/downloads' import { useI18n } from '../hooks/useI18n' import { useAtomValue } from 'jotai' const FlexContainer = styled(Container)({ display: 'flex', minWidth: '100%', minHeight: '80vh', alignItems: 'center', justifyContent: 'center', flexDirection: 'column' }) const Title = styled(Typography)({ display: 'flex', width: '100%', alignItems: 'center', justifyContent: 'center', paddingBottom: '0.5rem' }) export default function Splash() { const { i18n } = useI18n() const activeDownloads = useAtomValue(activeDownloadsState) if (activeDownloads.length !== 0) { return null } return ( <SvgIcon sx={{ fontSize: '200px' }}> <CloudDownloadIcon /> </SvgIcon> {i18n.t('splashText')} ) }