mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-13 12:40:58 +00:00
10 lines
294 B
TypeScript
10 lines
294 B
TypeScript
import { Spinner } from "@/components/layout/Spinner";
|
|
import { usePlayerStore } from "@/stores/player/store";
|
|
|
|
export function LoadingSpinner() {
|
|
const isLoading = usePlayerStore((s) => s.mediaPlaying.isLoading);
|
|
|
|
if (!isLoading) return null;
|
|
|
|
return <Spinner className="text-4xl" />;
|
|
}
|