'use strict'; import React from 'react'; import classnames from 'classnames'; import Col from 'react-bootstrap/lib/Col'; // Note: // // If we ever need generic breadcrumbs component, we should refactor this let SlidesContainerBreadcrumbs = React.createClass({ propTypes: { breadcrumbs: React.PropTypes.arrayOf(React.PropTypes.string).isRequired, slideNum: React.PropTypes.number.isRequired, numOfSlides: React.PropTypes.number.isRequired, containerWidth: React.PropTypes.number.isRequired, glyphiconClassNames: React.PropTypes.shape({ pending: React.PropTypes.string, complete: React.PropTypes.string }) }, getDefaultProps() { return { glyphiconClassNames: { pending: 'glyphicon glyphicon-chevron-right', complete: 'glyphicon glyphicon-lock' } }; }, render() { let breadcrumbs = this.props.breadcrumbs; let numSlides = breadcrumbs.length; let columnWidth = Math.floor(12 / numSlides); return (