/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require('react'); const PropTypes = require('prop-types'); const UserLink = ({infoLink, image, caption}) => ( {caption} {caption} ); UserLink.propTypes = { infoLink: PropTypes.string.isRequired, image: PropTypes.string.isRequired, caption: PropTypes.string.isRequired, }; const Showcase = ({users}) => (
{users.map(user => ( ))}
); Showcase.propTypes = { users: PropTypes.array.isRequired, }; Showcase.defaultProps = { users: [], }; module.exports = Showcase;