import React, { Component } from 'react' import PropTypes from 'prop-types' import { socialNavbar } from '../styles/social.module.scss' export default class Social extends Component { static propTypes = { social: PropTypes.arrayOf(PropTypes.object), email: PropTypes.string } render () { let key = 0 const socialLinks = this.props.social.map((val) => { const link = (
  • {val.name}
  • ) key += 1 return link }) socialLinks.push(
  • e-mail
  • ) return (
    ) } }