選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SectionLoader.js 418B

1234567891011121314151617181920
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. const SectionLoader = ({ children, isLoading }) => (
  4. <div className="c-loader__wrapper">
  5. {children}
  6. {isLoading && (
  7. <div className="c-loader">
  8. <div className="c-loader__icon" />
  9. </div>
  10. )}
  11. </div>
  12. );
  13. SectionLoader.propTypes = {
  14. children: PropTypes.node,
  15. isLoading: PropTypes.bool,
  16. };
  17. export default SectionLoader;