| 12345678910111213141516171819202122232425262728293031 |
- import React from 'react';
- import { PagePathLabel } from '@growi/ui';
- import PropTypes from 'prop-types';
- export class PagePathWrapper extends React.Component {
- render() {
- const classNames = [];
- if (!this.props.isExists) {
- classNames.push('lsx-page-not-exist');
- }
- return (
- <PagePathLabel path={this.props.pagePath} isLatterOnly additionalClassNames={classNames} />
- );
- }
- }
- PagePathWrapper.propTypes = {
- pagePath: PropTypes.string.isRequired,
- isExists: PropTypes.bool.isRequired,
- excludePathString: PropTypes.string,
- };
- PagePathWrapper.defaultProps = {
- excludePathString: '',
- };
|