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