2022-09-13 09:57:47 -04:00
|
|
|
type LoadingBrandedTypes = {
|
2023-10-16 07:10:43 -04:00
|
|
|
loadProgress: number // Percentage
|
|
|
|
label?: string
|
2023-12-15 07:21:00 -05:00
|
|
|
hasError?: boolean
|
2022-09-13 09:57:47 -04:00
|
|
|
}
|
|
|
|
|
2023-10-16 07:10:43 -04:00
|
|
|
export default function LoadingBranded({
|
|
|
|
loadProgress,
|
|
|
|
label,
|
2023-12-15 07:21:00 -05:00
|
|
|
hasError = false,
|
2023-10-16 07:10:43 -04:00
|
|
|
}: LoadingBrandedTypes) {
|
2022-09-13 09:57:47 -04:00
|
|
|
return (
|
2023-12-15 07:21:00 -05:00
|
|
|
<>
|
|
|
|
<div className="loading-screen-brand-container">
|
|
|
|
<div
|
|
|
|
className="loading-screen-brand"
|
|
|
|
style={{ height: `${loadProgress}%` }}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{!hasError && (
|
2023-10-16 07:10:43 -04:00
|
|
|
<div className="h3 loading-screen-label" aria-live="polite">
|
2023-12-15 07:21:00 -05:00
|
|
|
{label}
|
2023-10-16 07:10:43 -04:00
|
|
|
<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>
|
|
|
|
)}
|
2023-12-15 07:21:00 -05:00
|
|
|
</>
|
2022-09-13 09:57:47 -04:00
|
|
|
)
|
|
|
|
}
|