Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

838 B
Raw Blame
import React from "react";
import { UiLoadingSpinner } from "../ui/ui-loading-spinner";

interface ChartLoaderProps {
  isDateChanging?: boolean;
}

export const ChartLoader: React.FC<ChartLoaderProps> = ({ isDateChanging = false }) => (
  <div className="flex items-center justify-center h-40">
    <div className="flex items-center justify-center gap-3">
      <UiLoadingSpinner className="size-5" />
      <div className="flex flex-col">
        <span className="text-muted-foreground text-sm font-medium">
          {isDateChanging ? "Processing date selection..." : "Loading chart data..."}
        </span>
        <span className="text-muted-foreground text-xs mt-1">
          {isDateChanging ? "This will only take a moment" : "Fetching your data"}
        </span>
      </div>
    </div>
  </div>
);

export default ChartLoader;