namchey/linkpreview

View on GitHub
app/Scrape/EmptySection/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import React  from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames/bind';
import styles from './styles.css';
const cx = classNames.bind(styles);

const EmptySection = ({ text }) => {
  return (
    <div className={cx('empty-section')}><p>{text || 'Nothing to show here.'}</p></div>
  );
};

EmptySection.propTypes = {
  text: PropTypes.string,
  className: PropTypes.string
};

export default EmptySection;