import React, { PropTypes } from 'react'; import { Link } from 'react-router'; // this is separated out to prevent react bootstrap's // NavBar from injecting unknown props to the li component export default function AvatarPointsNavItem({ picture, points, username }) { return (
  • { username } [ { points || 1 } ]
  • ); } AvatarPointsNavItem.propTypes = { username: PropTypes.string, picture: PropTypes.string, points: PropTypes.number };