import React, { PropTypes } from 'react';
import { Link } from 'react-router';
import { NavItem } from 'react-bootstrap';
// this is separated out to prevent react bootstrap's
// NavBar from injecting unknown props to the li component
const propTypes = {
picture: PropTypes.string,
points: PropTypes.number,
showLoading: PropTypes.bool,
username: PropTypes.string
};
export default function SignUpButton({
picture,
points,
showLoading,
username
}) {
if (showLoading) {
return null;
}
if (!username) {
return (