2020-08-11 04:54:03 +02:00
|
|
|
import React from 'react';
|
2021-02-16 12:59:39 +01:00
|
|
|
import PropTypes from 'prop-types';
|
2020-08-11 04:54:03 +02:00
|
|
|
import Icon from 'components/common/Icon';
|
|
|
|
import Logo from 'assets/logo.svg';
|
|
|
|
import styles from './EmptyPlaceholder.module.css';
|
|
|
|
|
2021-02-16 12:59:39 +01:00
|
|
|
function EmptyPlaceholder({ msg, children }) {
|
2020-08-11 04:54:03 +02:00
|
|
|
return (
|
|
|
|
<div className={styles.placeholder}>
|
2020-10-14 03:24:27 +02:00
|
|
|
<Icon className={styles.icon} icon={<Logo />} size="xlarge" />
|
2020-08-11 04:54:03 +02:00
|
|
|
<h2>{msg}</h2>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2021-02-16 12:59:39 +01:00
|
|
|
|
|
|
|
EmptyPlaceholder.propTypes = {
|
|
|
|
msg: PropTypes.node,
|
|
|
|
children: PropTypes.node,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default EmptyPlaceholder;
|