import * as React from 'react'; import { imgResize } from '../utils/imgResize'; import { Props, State } from './type'; import { Container, NavLinkItem, NavItemIcon, NavItemText } from './index.style'; export class NavBar extends React.Component { static defaultProps = new Props(); state = new State(); public render () { const { color, style, marginTop, marginBottom, navData } = this.props; return ( { navData.map((nav, index) => ( { nav.icon && ( ) } {nav.name} )) } ) } }