import React from 'react' import PropTypes from 'prop-types' import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component' import PillItem from './pill_item' /** * Renders pills components * @param {array} [props.pills] - tab bar data for creating `TabBarItem` */ class Pills extends React.PureComponent { render() { const { pills } = this.props return ( { !!pills && pills.map((tab, i) => ( )) } ) } } Pills.propTypes = { pills: PropTypes.array, } export default Pills