All files / src/components/common/LoadingOverlay index.tsx

100% Statements 11/11
100% Branches 1/1
100% Functions 1/1
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  1x   1x 1x 1x 1x 1x 1x 1x   1x 1x   1x  
// Utils
import { combineClasses } from '@shared/utils';
 
export const LoadingOverlay = ({ className = '' }) => {
  return (
    <div
      className={combineClasses(
        'absolute inset-0 flex items-center justify-center bg-white/60 z-10 dark:bg-gray-800/90',
        className,
      )}
    >
      <div className="w-6 h-6 border-[2px] border-t-transparent dark:border-t-transparent border-primary dark:border-secondary-550 rounded-full animate-spin" />
    </div>
  );
};