import React from 'react'; import { useLoading } from '../context/LoadingContext'; /** * Loading spinner full screen component used throughout the app for showing a loading spinner * that covers the entire screen. */ const LoadingSpinnerFullScreen: React.FC = () => { const { isLoading } = useLoading(); if (!isLoading) { return null; } const spinnerStyle: React.CSSProperties = { width: '40px', height: '40px', borderRadius: '50%', animation: 'spin 1s linear infinite', }; const spinner = ( <>
> ); return (