import React from 'react'
import './LoadingError.css'

function LoadingError({ onRetry }) {
  return (
    <div className="loading-error-container">
      <div className="loading-error-content">
        {onRetry && (
          <button
            onClick={onRetry}
            className="loading-error-button"
          >
            Повторить
          </button>
        )}
      </div>
    </div>
  )
}

export default LoadingError

