mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-05 18:40:53 +00:00
- Switch from default export to named export - Convert component to arrow function - Remove unused props parameter
20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
import { cn } from "@/lib/utils";
|
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
|
|
interface LoadingProps {
|
|
className?: string;
|
|
skeletonClassName?: string;
|
|
}
|
|
|
|
const Loading = ({ className, skeletonClassName }: LoadingProps) => {
|
|
return (
|
|
<div className={cn("h-full w-full p-2 bg-background", className)}>
|
|
<Skeleton
|
|
className={cn("h-full w-full rounded-3xl", skeletonClassName)}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export { Loading };
|