umami/components/common/ErrorMessage.js

18 lines
469 B
JavaScript
Raw Normal View History

2023-02-02 03:39:54 +01:00
import { useIntl } from 'react-intl';
import { Icon, Icons, Text } from 'react-basics';
import { messages } from 'components/messages';
import styles from './ErrorMessage.module.css';
export default function ErrorMessage() {
2023-02-02 03:39:54 +01:00
const { formatMessage } = useIntl();
return (
<div className={styles.error}>
<Icon className={styles.icon} size="large">
<Icons.Alert />
</Icon>
2023-02-02 03:39:54 +01:00
<Text>{formatMessage(messages.error)}</Text>
</div>
);
}