23
play-life-web/src/components/LoadingError.jsx
Normal file
23
play-life-web/src/components/LoadingError.jsx
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user