feature(components): prop-type EmptyPlaceholder

This commit is contained in:
Alexander Klein 2021-02-16 12:59:39 +01:00
parent b75ad8eec5
commit 5b80b123fa

View File

@ -1,9 +1,10 @@
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';
export default function EmptyPlaceholder({ msg, children }) {
function EmptyPlaceholder({ msg, children }) {
return (
<div className={styles.placeholder}>
<Icon className={styles.icon} icon={<Logo />} size="xlarge" />
@ -12,3 +13,10 @@ export default function EmptyPlaceholder({ msg, children }) {
</div>
);
}
EmptyPlaceholder.propTypes = {
msg: PropTypes.node,
children: PropTypes.node,
};
export default EmptyPlaceholder;