mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-01 00:08:11 +01:00
16 lines
399 B
JavaScript
16 lines
399 B
JavaScript
import classNames from 'classnames';
|
|
import styles from './Empty.module.css';
|
|
import useMessages from 'hooks/useMessages';
|
|
|
|
export function Empty({ message, className }) {
|
|
const { formatMessage, messages } = useMessages();
|
|
|
|
return (
|
|
<div className={classNames(styles.container, className)}>
|
|
{message || formatMessage(messages.noDataAvailable)}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Empty;
|