2023-02-02 03:39:54 +01:00
|
|
|
import { Icon, Icons, Text } from 'react-basics';
|
2020-10-04 07:36:51 +02:00
|
|
|
import styles from './ErrorMessage.module.css';
|
2023-03-22 22:05:55 +01:00
|
|
|
import useMessages from 'hooks/useMessages';
|
2020-10-04 07:36:51 +02:00
|
|
|
|
2023-04-21 17:00:42 +02:00
|
|
|
export function ErrorMessage() {
|
2023-03-22 22:05:55 +01:00
|
|
|
const { formatMessage, messages } = useMessages();
|
2023-02-02 03:39:54 +01:00
|
|
|
|
2020-10-04 07:36:51 +02:00
|
|
|
return (
|
|
|
|
<div className={styles.error}>
|
2022-12-27 01:57:59 +01:00
|
|
|
<Icon className={styles.icon} size="large">
|
2023-01-28 06:53:13 +01:00
|
|
|
<Icons.Alert />
|
2022-12-27 01:57:59 +01:00
|
|
|
</Icon>
|
2023-02-02 03:39:54 +01:00
|
|
|
<Text>{formatMessage(messages.error)}</Text>
|
2020-10-04 07:36:51 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2023-04-21 17:00:42 +02:00
|
|
|
|
|
|
|
export default ErrorMessage;
|