mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
refactor(loading): add className prop and support additional props
This commit is contained in:
parent
7eb6eedf22
commit
449dfd56f2
@ -1,8 +1,16 @@
|
|||||||
|
import { cn } from "@/lib/utils";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
|
|
||||||
export function Loading() {
|
interface LoadingProps {
|
||||||
|
className?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Loading({
|
||||||
|
className,
|
||||||
|
...props
|
||||||
|
}: LoadingProps) {
|
||||||
return (
|
return (
|
||||||
<div className="h-full w-full p-2">
|
<div className={cn("h-full w-full p-2", className)} {...props}>
|
||||||
<Skeleton className="h-full w-full rounded-3xl" />
|
<Skeleton className="h-full w-full rounded-3xl" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user