nodes-error.js 520 B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import classnames from 'classnames';
  3. const NodesError = ({
  4. children, faIconClass, hidden, mainClassName = 'nodes-chart-error'
  5. }) => {
  6. const className = classnames(mainClassName, {
  7. hide: hidden
  8. });
  9. return (
  10. <div className={className}>
  11. <div className="nodes-chart-error-icon-container">
  12. <div className="nodes-chart-error-icon">
  13. <span className={faIconClass} />
  14. </div>
  15. </div>
  16. {children}
  17. </div>
  18. );
  19. };
  20. export default NodesError;