Vault.MCP / frontend /src /components /SettingsSectionSkeleton.tsx
Helquin's picture
added Skeleton Animations , regular animations, more toasts, folder support, moving files within UI, start script for windows for back end and front end
d212ba6
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Skeleton } from "@/components/ui/skeleton";
interface SettingsSectionSkeletonProps {
title: string;
description?: string;
}
export function SettingsSectionSkeleton({ title, description }: SettingsSectionSkeletonProps) {
return (
<Card>
<CardHeader>
<CardTitle>{title}</CardTitle>
{description && <CardDescription>{description}</CardDescription>}
</CardHeader>
<CardContent className="space-y-4">
{/* Profile skeleton */}
<div className="flex items-center gap-4">
<Skeleton className="h-16 w-16 rounded-full" />
<div className="flex-1 space-y-2">
<Skeleton className="h-5 w-48" />
<Skeleton className="h-4 w-40" />
<Skeleton className="h-3 w-36" />
</div>
<Skeleton className="h-9 w-20" />
</div>
</CardContent>
</Card>
);
}