mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
18 lines
469 B
JavaScript
18 lines
469 B
JavaScript
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() {
|
|
const { formatMessage } = useIntl();
|
|
|
|
return (
|
|
<div className={styles.error}>
|
|
<Icon className={styles.icon} size="large">
|
|
<Icons.Alert />
|
|
</Icon>
|
|
<Text>{formatMessage(messages.error)}</Text>
|
|
</div>
|
|
);
|
|
}
|