2020-09-11 07:21:38 +02:00
|
|
|
import React from 'react';
|
2021-02-16 13:32:04 +01:00
|
|
|
import PropTypes from 'prop-types';
|
2020-09-11 07:21:38 +02:00
|
|
|
import classNames from 'classnames';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import styles from './NoData.module.css';
|
|
|
|
|
2021-02-16 13:32:04 +01:00
|
|
|
function NoData({ className }) {
|
2020-09-11 07:21:38 +02:00
|
|
|
return (
|
|
|
|
<div className={classNames(styles.container, className)}>
|
|
|
|
<FormattedMessage id="message.no-data-available" defaultMessage="No data available." />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2021-02-16 13:32:04 +01:00
|
|
|
|
|
|
|
NoData.propTypes = {
|
|
|
|
className: PropTypes.string,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NoData;
|