2021-12-23 16:31:56 +01:00
|
|
|
import React from 'react'
|
|
|
|
|
2021-12-29 10:22:26 +01:00
|
|
|
export const ErrorPage = ({ error }: { error: Error }) => {
|
2021-12-23 16:31:56 +01:00
|
|
|
return (
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
height: '100vh',
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
flexDirection: 'column',
|
|
|
|
}}
|
|
|
|
>
|
2021-12-29 10:22:26 +01:00
|
|
|
<h1 style={{ fontWeight: 'bold', fontSize: '30px' }}>{error.name}</h1>
|
|
|
|
<h2>{error.message}</h2>
|
2021-12-23 16:31:56 +01:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|