mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-21 08:43:37 +01:00
23 lines
539 B
JavaScript
23 lines
539 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import Icon from 'components/common/Icon';
|
|
import Logo from 'assets/logo.svg';
|
|
import styles from './EmptyPlaceholder.module.css';
|
|
|
|
function EmptyPlaceholder({ msg, children }) {
|
|
return (
|
|
<div className={styles.placeholder}>
|
|
<Icon className={styles.icon} icon={<Logo />} size="xlarge" />
|
|
<h2>{msg}</h2>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
EmptyPlaceholder.propTypes = {
|
|
msg: PropTypes.node,
|
|
children: PropTypes.node,
|
|
};
|
|
|
|
export default EmptyPlaceholder;
|