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

function LoadingError({ onRetry }) {
  return (
    <div className="loading-error-container">
      <div className="loading-error-content">
        <div className="loading-error-text">Ошибка, повторите позже</div>
        {onRetry && (
          <button
            onClick={onRetry}
            className="loading-error-button"
          >
            Повторить
          </button>
        )}
      </div>
    </div>
  )
}

export default LoadingError

