import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import InlineSVG from 'react-inlinesvg'; const triangleUrl = require('../images/down-filled-triangle.svg'); const logoUrl = require('../images/p5js-logo-small.svg'); class Nav extends React.PureComponent { isUserOwner() { return this.props.project.owner && this.props.project.owner.id === this.props.user.id; } render() { return ( ); } } Nav.propTypes = { newProject: PropTypes.func.isRequired, saveProject: PropTypes.func.isRequired, exportProjectAsZip: PropTypes.func.isRequired, cloneProject: PropTypes.func.isRequired, user: PropTypes.shape({ authenticated: PropTypes.bool.isRequired, username: PropTypes.string, id: PropTypes.string }).isRequired, project: PropTypes.shape({ id: PropTypes.string, owner: PropTypes.shape({ id: PropTypes.string }) }), logoutUser: PropTypes.func.isRequired, showShareModal: PropTypes.func.isRequired, showErrorModal: PropTypes.func.isRequired, unsavedChanges: PropTypes.bool.isRequired, warnIfUnsavedChanges: PropTypes.func.isRequired }; Nav.defaultProps = { project: { id: undefined, owner: undefined } }; export default Nav;