mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-08-29 07:14:31 +08:00
17 lines
538 B
TypeScript
17 lines
538 B
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
interface LoadingProps {
|
|
className?: string;
|
|
}
|
|
|
|
export function Loading({ className }: LoadingProps) {
|
|
return (
|
|
<div className={cn("flex items-center justify-center min-h-[400px]", className)}>
|
|
<div className="relative">
|
|
<div className="w-12 h-12 rounded-full absolute border-4 border-solid border-gray-200"></div>
|
|
<div className="w-12 h-12 rounded-full animate-spin absolute border-4 border-solid border-primary border-t-transparent"></div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|