umami/components/common/NoData.js

16 lines
375 B
JavaScript
Raw Normal View History

import classNames from 'classnames';
import styles from './NoData.module.css';
2023-04-08 07:03:52 +02:00
import useMessages from 'hooks/useMessages';
2021-02-16 13:32:04 +01:00
function NoData({ className }) {
2023-04-08 07:03:52 +02:00
const { formatMessage, messages } = useMessages();
return (
<div className={classNames(styles.container, className)}>
{formatMessage(messages.noDataAvailable)}
</div>
);
}
2021-02-16 13:32:04 +01:00
export default NoData;