import { useSelector } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; import { getAppIsLoading } from '../../../selectors'; import Spinner from '../../ui/spinner'; const AppLoadingSpinner = ({ className }) => { const appIsLoading = useSelector(getAppIsLoading); if (!appIsLoading) { return null; } return (