import PropTypes from 'prop-types'; import { app as $content } from '../content'; import { BREAKPOINTS } from '../constants'; import { clsm, noop } from '../utils'; import { SyncError } from '../assets/icons'; import Button from './Button'; import Spinner from './Spinner'; const FullScreenLoader = ({ hasError, mobileBreakpoint, onClick }) => hasError ? (
svg]:w-12', '[&>svg]:h-12', '[&>svg]:fill-lightMode-gray-dark', 'dark:[&>svg]:fill-white' ])} >

{$content.full_screen_loader.error_occurred}

) : (
); FullScreenLoader.propTypes = { hasError: PropTypes.bool, mobileBreakpoint: PropTypes.oneOf(Object.values(BREAKPOINTS)), onClick: PropTypes.func }; FullScreenLoader.defaultProps = { hasError: false, mobileBreakpoint: BREAKPOINTS.md, onClick: noop }; export default FullScreenLoader;