Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.4 KB
Raw Blame
import { Card, CardContent } from '@/components/ui/card';
import { Skeleton } from '@/components/ui/skeleton';

type TemplateCardSkeletonProps = {
  showCategoryCarouselButton?: boolean;
};

export const TemplateCardSkeleton = ({
  showCategoryCarouselButton = false,
}: TemplateCardSkeletonProps) => {
  return (
    <Card className="h-[250px] w-full flex flex-col">
      <CardContent className="py-5 px-4 flex flex-col gap-1 flex-1 min-h-0">
        {showCategoryCarouselButton && (
          <div className="h-12 flex flex-col gap-2 flex-shrink-0">
            <Skeleton className="h-5 w-full" />
            <Skeleton className="h-5 w-3/4" />
          </div>
        )}

        <div className="flex flex-col gap-2 mt-1 flex-shrink-0">
          <Skeleton className="h-4 w-full" />
          <Skeleton className="h-4 w-full" />
          <Skeleton className="h-4 w-5/6" />
        </div>

        <div className="h-8 flex gap-2 mt-1 flex-shrink-0">
          <Skeleton className="h-6 w-20" />
          <Skeleton className="h-6 w-24" />
        </div>
      </CardContent>

      <div className="h-16 flex items-center px-4 rounded-b-xl">
        <Skeleton className="h-8 w-8 rounded-full" />
        <Skeleton className="h-8 w-8 rounded-full ml-2" />
        <Skeleton className="h-8 w-8 rounded-full ml-2" />
        <Skeleton className="h-8 w-8 rounded-full ml-2" />
      </div>
    </Card>
  );
};