// @flow import * as React from 'react'; import { Link } from 'react-router-dom'; import { StyledSubnav, SubnavList, SubnavListItem } from './style'; type SubnavItem = { to: string, label: string, activeLabel: string, }; type Props = { items: Array, activeTab: string, }; class Subnav extends React.Component { render() { const { activeTab, items } = this.props; return ( {items.map((item, i) => { return ( {item.label} ); })} ); } } export default Subnav;