mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 23:15:57 -05:00
1ce16dd09f
GitOrigin-RevId: 3a460e1f53387e7012f994f6e8ea9ce764eb0fd2
37 lines
872 B
TypeScript
37 lines
872 B
TypeScript
type LoadingBrandedTypes = {
|
|
loadProgress: number // Percentage
|
|
label?: string
|
|
hasError?: boolean
|
|
}
|
|
|
|
export default function LoadingBranded({
|
|
loadProgress,
|
|
label,
|
|
hasError = false,
|
|
}: LoadingBrandedTypes) {
|
|
return (
|
|
<>
|
|
<div className="loading-screen-brand-container">
|
|
<div
|
|
className="loading-screen-brand"
|
|
style={{ height: `${loadProgress}%` }}
|
|
/>
|
|
</div>
|
|
|
|
{!hasError && (
|
|
<div className="h3 loading-screen-label" aria-live="polite">
|
|
{label}
|
|
<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>
|
|
)}
|
|
</>
|
|
)
|
|
}
|