-
- {this.props.item.icon}
- {this.props.item.title}
-
-
- {this.props.item.subNav && this.state.isSubNavOpen
- ? this.props.item.iconOpened
- : this.props.item.subNav
- ? this.props.item.iconClosed
- : null}
-
-
-
- {/* not used as of the moment */}
- {this.state.isSubNavOpen && // check if subNav is open
- this.props.item.subNav && // check if subNav exists in that item
- this.props.item.subNav.map((item, index) => {
- // shows all items in subNav
- return (
-