import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Icon, ICON_NAMES, ICON_SIZES, } from '../../component-library/icon/deprecated'; 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;