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