import React from 'react';
import PropTypes from 'prop-types';
import './NoMatch.less';
class NoMatch extends React.PureComponent {
    static propTypes = {
        location: PropTypes.object,
    };
    render() {
        const { location } = this.props;
        const { pathname } = location;
        let text = (
            <h3>
                No match for <code>{location.pathname}</code>
            </h3>
        );
        if (pathname === '/' || pathname === '/index.html') {
            text = '';
        }
        return <div>{text}</div>;
    }
}
export default NoMatch;
