diff --git a/app/components/PageLoadingIndicator.tsx b/app/components/PageLoadingIndicator.tsx new file mode 100644 index 0000000..9f4735d --- /dev/null +++ b/app/components/PageLoadingIndicator.tsx @@ -0,0 +1,14 @@ +import { useNavigation } from "@remix-run/react"; +import SpinnerSVG from "./SpinnerSVG"; + +export default function PageLoadingIndicator() { + const navigation = useNavigation(); + if (navigation.state !== "loading") return null; + return ( +