ohif-viewer/platform/ui-next/src/components/LoadingIndicatorProgress/LoadingIndicatorProgress.tsx
Dan Rukas 9a2691a71f
fix(colors): Replaces legacy colors with ui-next colors (#5351)
* Update playwright screenshots and fix broken tests.

---------

Co-authored-by: Joe Boccanfuso <joe.boccanfuso@radicalimaging.com>
2026-02-12 08:48:05 -05:00

30 lines
902 B
TypeScript

import React from 'react';
import classNames from 'classnames';
import ProgressLoadingBar from '../ProgressLoadingBar';
import { Icons } from '../Icons';
/**
* A React component that renders a loading indicator.
* if progress is not provided, it will render an infinite loading indicator
* if progress is provided, it will render a progress bar
* Optionally a textBlock can be provided to display a message
*/
function LoadingIndicatorProgress({ className, textBlock, progress }) {
return (
<div
className={classNames(
'absolute top-0 left-0 z-50 flex flex-col items-center justify-center space-y-5',
className
)}
>
<Icons.LoadingOHIFMark className="text-foreground h-12 w-12" />
<div className="w-48">
<ProgressLoadingBar progress={progress} />
</div>
{textBlock}
</div>
);
}
export default LoadingIndicatorProgress;