The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/views/oauth/components/ErrorPage.tsx

25 lines
618 B

import { States, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
import { useTranslation } from 'react-i18next';
import Layout from './Layout';
import { getErrorMessage } from '../../../lib/errorHandling';
type ErrorPageProps = {
error: unknown;
};
const ErrorPage = ({ error }: ErrorPageProps) => {
const { t } = useTranslation();
return (
<Layout>
<States>
<StatesIcon name='warning' variation='danger' />
<StatesTitle>{t('core.Error')}</StatesTitle>
<StatesSubtitle>{getErrorMessage(error)}</StatesSubtitle>
</States>
</Layout>
);
};
export default ErrorPage;