19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
import { messages } from "../utils/constants";
|
|
import RefreshButton from "./refresh-button";
|
|
|
|
const ErrorCard = ({ message }) => {
|
|
|
|
return (
|
|
<>
|
|
<div className="error">
|
|
<p>❌ {messages.serverOverload}</p>
|
|
<p>Try again in few seconds</p>
|
|
<RefreshButton />
|
|
</div>
|
|
|
|
</>
|
|
);
|
|
}
|
|
|
|
|
|
export default ErrorCard; |