/** * External dependencies */ import { __ } from '@wordpress/i18n'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Spinner } from 'wordpress-components'; /** * Internal dependencies */ import './style.scss'; const LoadingMask = ( { children, className, screenReaderLabel, showSpinner = false, isLoading = true, } ) => { // If nothing is loading, just pass through the children. if ( ! isLoading ) { return children; } return (