2024-09-30 17:17:57 -04:00
|
|
|
import React from 'react';
|
|
|
|
|
import { Skeleton } from '~/components/ui';
|
|
|
|
|
|
|
|
|
|
export default function AgentPanelSkeleton() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="scrollbar-gutter-stable h-auto w-full flex-shrink-0 overflow-x-hidden">
|
2025-02-21 15:02:07 -05:00
|
|
|
<div className="mx-1 mt-2 flex w-full flex-wrap gap-2">
|
|
|
|
|
{/* Agent Select Dropdown */}
|
|
|
|
|
<div className="w-full">
|
|
|
|
|
<Skeleton className="h-[40px] w-full rounded-md" />
|
|
|
|
|
</div>
|
|
|
|
|
{/* Create and Select Buttons */}
|
|
|
|
|
<div className="flex w-full gap-2">
|
|
|
|
|
<Skeleton className="h-[40px] w-3/4 rounded-md" /> {/* Create Button */}
|
|
|
|
|
<Skeleton className="h-[40px] w-1/4 rounded-md" /> {/* Select Button */}
|
|
|
|
|
</div>
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="h-auto bg-white px-4 pb-8 pt-3 dark:bg-transparent">
|
|
|
|
|
{/* Avatar */}
|
|
|
|
|
<div className="mb-4">
|
|
|
|
|
<div className="flex w-full items-center justify-center gap-4">
|
|
|
|
|
<Skeleton className="relative h-20 w-20 rounded-full" />
|
|
|
|
|
</div>
|
|
|
|
|
{/* Name */}
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="mb-2 h-5 w-1/5 rounded-lg" />
|
|
|
|
|
<Skeleton className="mb-1 h-[40px] w-full rounded-lg" />
|
|
|
|
|
<Skeleton className="h-3 w-1/4 rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Description */}
|
|
|
|
|
<div className="mb-4">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="mb-2 h-5 w-1/4 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[40px] w-full rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Instructions */}
|
|
|
|
|
<div className="mb-6">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="mb-2 h-5 w-1/4 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[100px] w-full rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Model and Provider */}
|
|
|
|
|
<div className="mb-6">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="mb-2 h-5 w-1/4 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[40px] w-full rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Capabilities */}
|
|
|
|
|
<div className="mb-6">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="mb-2 h-5 w-1/4 rounded-lg" />
|
|
|
|
|
<Skeleton className="mb-2 h-5 w-36 rounded-lg" />
|
|
|
|
|
<Skeleton className="mb-4 h-[35px] w-full rounded-lg" />
|
|
|
|
|
<Skeleton className="mb-2 h-5 w-24 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[35px] w-full rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Tools & Actions */}
|
|
|
|
|
<div className="mb-6">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="mb-2 h-5 w-1/4 rounded-lg" />
|
|
|
|
|
<Skeleton className="mb-2 h-[35px] w-full rounded-lg" />
|
|
|
|
|
<Skeleton className="mb-2 h-[35px] w-full rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
<div className="flex space-x-2">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="h-8 w-1/2 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-8 w-1/2 rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-12-17 19:47:39 -05:00
|
|
|
{/* Admin Settings */}
|
|
|
|
|
<div className="mb-6">
|
|
|
|
|
<Skeleton className="h-[35px] w-full rounded-lg" />
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-09-30 17:17:57 -04:00
|
|
|
{/* Bottom Buttons */}
|
|
|
|
|
<div className="flex items-center justify-end gap-2">
|
2024-12-17 19:47:39 -05:00
|
|
|
<Skeleton className="h-[35px] w-16 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[35px] w-16 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[35px] w-16 rounded-lg" />
|
|
|
|
|
<Skeleton className="h-[35px] w-full rounded-lg" />
|
2024-09-30 17:17:57 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|