import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import IconCaretRight from '../../ui/icon/icon-caret-right'; const TabBar = (props) => { const { tabs = [], onSelect, isActive } = props; return (
{tabs.map(({ key, content, icon }) => ( ))}
); }; TabBar.propTypes = { isActive: PropTypes.func.isRequired, tabs: PropTypes.array, onSelect: PropTypes.func, }; export default TabBar;