content: import React from 'react';
  import constants from './constants';
  
  const BootstrapMixin = {
    propTypes: {
      bsClass: React.PropTypes.oneOf(Object.keys(constants.CLASSES)),
      bsStyle: React.PropTypes.oneOf(Object.keys(constants.STYLES)),
      bsSize: React.PropTypes.oneOf(Object.keys(constants.SIZES))
    },
  
    getBsClassSet() {
      let classes = {};
  
      let bsClass = this.props.bsClass && constants.CLASSES[this.props.bsClass];
      if (bsClass) {
        classes[bsClass] = true;
  
        let prefix = bsClass + '-';
  
        let bsSize = this.props.bsSize && constants.SIZES[this.props.bsSize];
        if (bsSize) {
          classes[prefix + bsSize] = true;
        }
  
        let bsStyle = this.props.bsStyle && constants.STYLES[this.props.bsStyle];
        if (this.props.bsStyle) {
          classes[prefix + bsStyle] = true;
        }
      }
  
      return classes;
    },
  
    prefixClass(subClass) {
      return constants.CLASSES[this.props.bsClass] + '-' + subClass;
    }
  };
  
  export default BootstrapMixin;
  