2022-01-28 16:57:07 +01:00
|
|
|
import Robot from 'shared/components/robot/index.js'
|
2022-02-12 14:31:17 +01:00
|
|
|
import Events from '../events.js'
|
2022-02-08 20:49:19 +01:00
|
|
|
import { useTranslation } from 'next-i18next'
|
2022-01-28 16:57:07 +01:00
|
|
|
|
2022-02-08 20:49:19 +01:00
|
|
|
const Error = props => {
|
|
|
|
const { t } = useTranslation(['errors'])
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="mt-12">
|
|
|
|
<div className="flex flex-row items-center justify-around">
|
|
|
|
<h1>{t('errors:something')}</h1>
|
|
|
|
<div className="max-w-96"><Robot pose='fail' embed/></div>
|
|
|
|
</div>
|
|
|
|
<Events events={props.draft.events} />
|
2022-01-28 16:57:07 +01:00
|
|
|
</div>
|
2022-02-08 20:49:19 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-01-28 16:57:07 +01:00
|
|
|
|
|
|
|
export default Error
|
|
|
|
|