bjarneo 0c86efd56c
refactor: use fastify vite for the dev server (#284)
* 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
2024-03-11 13:43:20 +01:00

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;