Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

662 B
Raw Blame
import { cn } from "@/src/utils/tailwind";

export function TopicMapLoading({ fillContainer }: TopicMapLoadingProps) {
  return (
    <div
      role="status"
      className={cn(
        "bg-muted/20 flex min-w-0 flex-col overflow-hidden rounded-lg border text-sm",
        fillContainer && "h-full min-h-0",
      )}
    >
      <div
        className={cn(
          "flex items-center justify-center",
          fillContainer
            ? "min-h-0 flex-1"
            : "h-[clamp(380px,64vh,820px)] min-h-[340px]",
        )}
      >
        Loading embedding map…
      </div>
    </div>
  );
}

type TopicMapLoadingProps = {
  fillContainer: boolean;
};