diff --git a/app/lookup/[domain]/loading.tsx b/app/lookup/[domain]/loading.tsx new file mode 100644 index 0000000..1176122 --- /dev/null +++ b/app/lookup/[domain]/loading.tsx @@ -0,0 +1,18 @@ +import { type FC, Fragment } from 'react'; + +import { Skeleton } from '@/components/ui/skeleton'; + +const DomainError: FC = () => ( +
+ {Array.from({ length: 3 }).map((_, i) => ( + + + {Array.from({ length: 3 }).map((_, i) => ( + + ))} + + ))} +
+); + +export default DomainError; diff --git a/app/lookup/[domain]/whois/loading.tsx b/app/lookup/[domain]/whois/loading.tsx index 896c5e4..9bc481b 100644 --- a/app/lookup/[domain]/whois/loading.tsx +++ b/app/lookup/[domain]/whois/loading.tsx @@ -1,8 +1,11 @@ -import { Spinner } from '@/components/ui/spinner'; +import { Skeleton } from '@/components/ui/skeleton'; const WhoisLoading = () => ( -
- +
+ + {Array.from({ length: 10 }).map((_, i) => ( + + ))}
); diff --git a/components/ui/skeleton.tsx b/components/ui/skeleton.tsx new file mode 100644 index 0000000..a626d9b --- /dev/null +++ b/components/ui/skeleton.tsx @@ -0,0 +1,15 @@ +import { cn } from '@/lib/utils'; + +function Skeleton({ + className, + ...props +}: React.HTMLAttributes) { + return ( +
+ ); +} + +export { Skeleton };