text: import {Link} from 'react-router';
  import React, {PropTypes} from 'react';
  
  class BreadcrumbSegmentLink extends React.Component {
    render() {
      let {props} = this;
      let content = props.label;
  
      if (props.route) {
        return (
          <Link
            className={props.className}
            {...props.route}
            title={content}>
            {content}
          </Link>
        );
      } else if (props.onClick) {
        return (
          <a className={props.className} onClick={props.onClick} title={content}>
            {content}
          </a>
        );
      } else {
        return (
          <span>{content}</span>
        );
      }
    }
  };
  
  BreadcrumbSegmentLink.propTypes = {
    label: PropTypes.string.isRequired,
    route: PropTypes.object
  };
  
  module.exports = BreadcrumbSegmentLink;
  