File size: 383 Bytes
cc1ccff
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import LoadingBar from "./LoadingBar";
import Spinner from "./Spinner";
import ThinkingDots from "./ThinkingDots";

// Render different loading styles based on type
export default function LoadingIndicator({ type = "dots" }) {
  if (type === "dots") return <ThinkingDots />;
  if (type === "spinner") return <Spinner />;
  if (type === "bar") return <LoadingBar />;
  return null;
}