* refactor: use fastify vite for the server by doing this we do not need to have local hacks for the routes. No local proxy needed. Everything just works. * fix: update the dockerfile build path * fix: update package.json * fix: fonts path
21 lines
480 B
JavaScript
21 lines
480 B
JavaScript
import { Alert } from '@mantine/core';
|
|
import { IconAlertCircle } from '@tabler/icons';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
const ErrorBox = ({ message, title = 'home.bummer' }) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Alert
|
|
icon={<IconAlertCircle size="1rem" />}
|
|
title={t(title)}
|
|
color="red"
|
|
variant="outline"
|
|
>
|
|
{message}
|
|
</Alert>
|
|
);
|
|
};
|
|
|
|
export default ErrorBox;
|