import React from 'react'; import PropTypes from 'prop-types'; import { createSelector } from 'reselect'; import { connect } from 'react-redux'; import { Thumbnail, Media } from 'react-bootstrap'; import { FullWidthRow } from '../../../helperComponents'; import { userByNameSelector } from '../../../redux'; const mapStateToProps = createSelector( userByNameSelector, ({ portfolio }) => ({ portfolio }) ); const propTypes = { portfolio: PropTypes.arrayOf( PropTypes.shape({ description: PropTypes.string, id: PropTypes.string, image: PropTypes.string, title: PropTypes.string, url: PropTypes.string }) ) }; function Portfolio({ portfolio = [] }) { if (!portfolio.length) { return null; } return (
{ description }