2025-03-18 11:34:00 +00:00
|
|
|
import { cn } from "@/lib/utils";
|
2025-03-11 14:40:21 +00:00
|
|
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
|
|
|
2025-03-18 11:34:00 +00:00
|
|
|
interface LoadingProps {
|
|
|
|
className?: string;
|
2025-03-18 11:46:19 +00:00
|
|
|
skeletonClassName?: string;
|
2025-03-18 11:34:00 +00:00
|
|
|
}
|
|
|
|
|
2025-05-09 01:40:25 +00:00
|
|
|
const Loading = ({ className, skeletonClassName }: LoadingProps) => {
|
2025-03-11 14:40:21 +00:00
|
|
|
return (
|
2025-05-09 01:40:25 +00:00
|
|
|
<div className={cn("h-full w-full p-2 bg-background", className)}>
|
|
|
|
<Skeleton
|
|
|
|
className={cn("h-full w-full rounded-3xl", skeletonClassName)}
|
|
|
|
/>
|
2025-03-11 14:40:21 +00:00
|
|
|
</div>
|
|
|
|
);
|
2025-05-09 01:40:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export { Loading };
|