mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
30 lines
793 B
TypeScript
30 lines
793 B
TypeScript
|
import { useTranslation } from 'react-i18next'
|
||
|
|
||
|
type LoadingBrandedTypes = {
|
||
|
loadProgress: number
|
||
|
}
|
||
|
|
||
|
export default function LoadingBranded({ loadProgress }: LoadingBrandedTypes) {
|
||
|
const { t } = useTranslation()
|
||
|
return (
|
||
|
<div className="loading-screen-brand-container">
|
||
|
<div
|
||
|
className="loading-screen-brand"
|
||
|
style={{ height: `${loadProgress}%` }}
|
||
|
/>
|
||
|
<div className="h3 loading-screen-label" aria-live="polite">
|
||
|
{t('loading')}
|
||
|
<span className="loading-screen-ellip" aria-hidden="true">
|
||
|
.
|
||
|
</span>
|
||
|
<span className="loading-screen-ellip" aria-hidden="true">
|
||
|
.
|
||
|
</span>
|
||
|
<span className="loading-screen-ellip" aria-hidden="true">
|
||
|
.
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|