import React from 'react'; import TabPane from './TabPane.js'; class Tabs extends React.Component { render() { const {type, children = [], activeTab, onTabClick, className} = this.props; return (
{children.map(child => { if (child.props.tabId === activeTab) { return child.props.children; } })}
); } } export default Tabs;