overleaf/services/web/frontend/js/shared/components/loading-branded.tsx
Alexandre Bourdin a0fabee3b4 Merge pull request #9245 from overleaf/integration-project-dashboard-react-migration
[Integration branch] Project Dashboard React Migration

GitOrigin-RevId: 3c3db39109a8137c57995f5f7c0ff8c800f04c4e
2022-09-14 08:04:03 +00:00

29 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>
)
}