mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
17 lines
442 B
JavaScript
17 lines
442 B
JavaScript
import { Icon, Icons, Text } from 'react-basics';
|
|
import styles from './ErrorMessage.module.css';
|
|
import useMessages from 'hooks/useMessages';
|
|
|
|
export default function ErrorMessage() {
|
|
const { formatMessage, messages } = useMessages();
|
|
|
|
return (
|
|
<div className={styles.error}>
|
|
<Icon className={styles.icon} size="large">
|
|
<Icons.Alert />
|
|
</Icon>
|
|
<Text>{formatMessage(messages.error)}</Text>
|
|
</div>
|
|
);
|
|
}
|