import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import { map } from 'Helpers/elementChildren'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import styles from './PageSidebarItem.css'; class PageSidebarItem extends Component { // // Listeners onPress = () => { const { isChildItem, isParentItem, onPress } = this.props; if (isChildItem || !isParentItem) { onPress(); } } // // Render render() { const { iconName, title, to, isActive, isActiveParent, isChildItem, statusComponent: StatusComponent, children } = this.props; return (