2
0
Files
bot/apps/viewer/layouts/ErrorPage.tsx

19 lines
409 B
TypeScript
Raw Normal View History

2021-12-23 16:31:56 +01:00
import React from 'react'
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',
}}
>
<h1 style={{ fontWeight: 'bold', fontSize: '30px' }}>{error.name}</h1>
<h2>{error.message}</h2>
2021-12-23 16:31:56 +01:00
</div>
)
}