mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-12 20:03:40 +08:00
### What problem does this PR solve? Renovate global navigation bar, align styles to the design. (May causes minor layout issues in sub-pages, will check and fix soon) ### Type of change - [x] Refactoring
38 lines
821 B
TypeScript
38 lines
821 B
TypeScript
import { cn } from '@/lib/utils';
|
|
|
|
function Skeleton({
|
|
className,
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
className={cn('animate-pulse rounded-md bg-bg-card', className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function ParagraphSkeleton() {
|
|
return (
|
|
<div className="flex items-center space-x-4">
|
|
<Skeleton className="h-12 w-12 rounded-full" />
|
|
<div className="space-y-2">
|
|
<Skeleton className="h-4 w-[250px]" />
|
|
<Skeleton className="h-4 w-[200px]" />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
function CardSkeleton() {
|
|
return (
|
|
<div className="w-64">
|
|
<Skeleton className="mb-3 h-28 rounded-xl" />
|
|
<Skeleton className="mb-2 h-4" />
|
|
<Skeleton className="h-4 w-4/5" />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export { CardSkeleton, ParagraphSkeleton, Skeleton };
|