1
0
Fork 0
freesewing/packages/freesewing.shared/components/workbench/draft/error.js

22 lines
515 B
JavaScript
Raw Normal View History

2022-01-28 16:57:07 +01:00
import Robot from 'shared/components/robot/index.js'
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