content: 'use strict';
  
  import React from 'react';
  
  export default class PageView extends React.Component {
    render() {
      let linkClassName = this.props.pageLinkClassName;
      let cssClassName = this.props.pageClassName;
  
      if (this.props.selected) {
        if (typeof(cssClassName) !== 'undefined') {
          cssClassName = cssClassName + ' ' + this.props.activeClassName;
        } else {
          cssClassName = this.props.activeClassName;
        }
      }
  
      return (
          <li className={cssClassName}>
              <a {...this.props} className={linkClassName}>
                {this.props.page}
              </a>
          </li>
      );
    }
  };
  