Files
clash-verge-rev-lite/src/components/base/base-loading.tsx
2025-07-04 02:28:27 +03:00

15 lines
612 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Loader2 } from "lucide-react"; // 1. Импортируем стандартную иконку загрузки
import { cn } from "@root/lib/utils"; // Утилита для объединения классов
interface Props {
className?: string;
}
export const BaseLoading: React.FC<Props> = ({ className }) => {
return (
// 2. Используем иконку с анимацией вращения от Tailwind
// Мы можем легко менять ее размер и цвет через className
<Loader2 className={cn("h-5 w-5 animate-spin", className)} />
);
};