PagePath.jsx 491 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import PagePathLabel from './PagePathLabel';
  4. /**
  5. * !!DEPRECATED!!
  6. *
  7. * maintained for backward compatibility for growi-lsx-plugin(<= 3.1.1)
  8. */
  9. const PagePath = props => (
  10. <PagePathLabel isLatterOnly={props.isShortPathOnly} {...props} />
  11. );
  12. PagePath.propTypes = {
  13. isShortPathOnly: PropTypes.bool,
  14. ...PagePathLabel.propTypes,
  15. };
  16. PagePath.defaultProps = {
  17. ...PagePathLabel.defaultProps,
  18. };
  19. export default PagePath;