import { Loader2 } from "lucide-react" import { memo } from "react" import { cn } from "@/lib/utils" interface VideoLoadingIndicatorProps { isLoading: boolean loadProgress: number bufferProgress: number size?: number className?: string } export const VideoLoadingIndicator = memo(function VideoLoadingIndicator({ isLoading, size = 150, className, }: Omit) { if (!isLoading) return null return (
100 ? 20 : 14} />
) })