mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-07 09:23:38 +00:00
0b6f58bf9c
Ran Prettier on the entire codebase to fix formatting issues. My IDE was previously misconfigured, causing most of these errors. The IDE configuration has been corrected.
29 lines
677 B
TypeScript
29 lines
677 B
TypeScript
import { CenteredContent } from '@/layout/CenteredContent'
|
|
import { Screen } from '@/layout/Screen'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { Center } from '@/styled-system/jsx'
|
|
import { Text } from '@/primitives'
|
|
|
|
export const ErrorScreen = ({
|
|
title,
|
|
body,
|
|
}: {
|
|
title?: string
|
|
body?: string
|
|
}) => {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<Screen layout="centered">
|
|
<CenteredContent title={title || t('error.heading')} withBackButton>
|
|
{!!body && (
|
|
<Center>
|
|
<Text as="p" variant="h3" centered>
|
|
{body}
|
|
</Text>
|
|
</Center>
|
|
)}
|
|
</CenteredContent>
|
|
</Screen>
|
|
)
|
|
}
|