File size: 665 Bytes
0bfe2e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { TextGenerateEffect } from '@/components/shared/text-generate-effect';
import { LoadingOverlay } from '@/components/ui/loading-spinner';
import Image from 'next/image';
import React from 'react';

export function LoadingOverlayWithLogo({ title }: { title?: string }) {
  return (
    <LoadingOverlay showSpinner={false}>
      <Image
        src="/logo.png"
        alt="Loading..."
        priority
        width={180}
        height={180}
        className="animate-pulse"
      />
      <TextGenerateEffect
        className="text-lg mt-2 text-[--muted] animate-pulse"
        words={title ?? 'A i o s t r e a m s'}
      />
    </LoadingOverlay>
  );
}