2021-02-16 12:59:39 +01:00
|
|
|
import PropTypes from 'prop-types';
|
2022-12-27 01:57:59 +01:00
|
|
|
import { Icon, Flexbox } from 'react-basics';
|
2020-08-11 04:54:03 +02:00
|
|
|
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}>
|
2022-12-27 01:57:59 +01:00
|
|
|
<Icon className={styles.icon} size="xl">
|
|
|
|
<Logo />
|
|
|
|
</Icon>
|
2021-03-12 18:12:53 +01:00
|
|
|
<h2 className={styles.msg}>{msg}</h2>
|
2022-12-27 01:57:59 +01:00
|
|
|
<Flexbox justifyContent="center" alignItems="center">
|
|
|
|
{children}
|
|
|
|
</Flexbox>
|
2020-08-11 04:54:03 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2021-02-16 12:59:39 +01:00
|
|
|
|
|
|
|
EmptyPlaceholder.propTypes = {
|
|
|
|
msg: PropTypes.node,
|
|
|
|
children: PropTypes.node,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default EmptyPlaceholder;
|