content: import React from 'react';
  import classSet from 'classnames';
  import BootstrapMixin from './BootstrapMixin';
  
  const Thumbnail = React.createClass({
    mixins: [BootstrapMixin],
  
    getDefaultProps() {
      return {
        bsClass: 'thumbnail'
      };
    },
  
    render() {
      let classes = this.getBsClassSet();
  
      if(this.props.href) {
        return (
          <a {...this.props} href={this.props.href} className={classSet(this.props.className, classes)}>
            <img src={this.props.src} alt={this.props.alt} />
          </a>
        );
      }
      else {
        if(this.props.children) {
          return (
            <div {...this.props} className={classSet(this.props.className, classes)}>
              <img src={this.props.src} alt={this.props.alt} />
              <div className="caption">
                {this.props.children}
              </div>
            </div>
          );
        }
        else {
          return (
            <div {...this.props} className={classSet(this.props.className, classes)}>
              <img src={this.props.src} alt={this.props.alt} />
            </div>
          );
        }
      }
    }
  });
  
  export default Thumbnail;
  