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

704 B
Raw Blame
import { cn } from '@/lib/utils';

function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
  return (
    <div
      data-slot="skeleton"
      className={cn('animate-pulse rounded-md bg-gray-3', className)}
      {...props}
    />
  );
}

function SkeletonList({
  className,
  numberOfItems = 3,
  ...props
}: React.ComponentProps<'div'> & {
  numberOfItems?: number;
}) {
  const array = Array(numberOfItems).fill(null);
  return (
    <div className="space-y-3">
      {array.map((_, index) => (
        <Skeleton
          key={index}
          className={cn('h-4 w-full', className)}
          {...props}
        />
      ))}
    </div>
  );
}

export { Skeleton, SkeletonList };