var React = require('react'); var _ = require('lodash'); var cx = require('classnames'); var NaturalCritIcon = require('naturalcrit/svg/naturalcrit.svg.jsx'); var Nav = { base : React.createClass({ render : function(){ return } }), logo : function(){ return NaturalCrit ; }, section : React.createClass({ render : function(){ return
{this.props.children}
} }), item : React.createClass({ getDefaultProps: function() { return { icon : null, href : null, newTab : false, onClick : function(){}, color : null }; }, handleClick : function(){ this.props.onClick(); }, render : function(){ var classes = cx('navItem', this.props.color, this.props.className); var icon; if(this.props.icon) icon = ; if(this.props.href){ return {this.props.children} {icon} }else{ return
{this.props.children} {icon}
} } }), }; module.exports = Nav;