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