import { cn } from "@/lib/utils"; import { usePromiseTracker } from "react-promise-tracker"; export interface ISVGProps extends React.SVGProps { size?: number; className?: string; } export const LoadingSpinner = ({ size = 48, className, ...props }: ISVGProps) => { const { promiseInProgress } = usePromiseTracker(); if (!promiseInProgress) { return null; } return (
); };