monaco-editor-lsp-next/src/components/loading.tsx
cfngc4594 baf377b722 refactor(loading): change to named export and arrow function
- Switch from default export to named export
- Convert component to arrow function
- Remove unused props parameter
2025-05-09 09:40:25 +08:00

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 };