/** * 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 PropTypes = require('prop-types'); const React = require('react'); function SocialFooter(props) { const repoUrl = `https://github.com/${props.config.organizationName}/${ props.config.projectName }`; return (
Social
{props.config.projectName}
{props.config.twitterUsername && (
Follow @{props.config.twitterUsername}
)} {props.config.facebookAppId && (
)}
); } SocialFooter.propTypes = { config: PropTypes.object, }; class Footer extends React.Component { render() { const docsPart = `${ this.props.config.docsUrl ? `${this.props.config.docsUrl}/` : '' }`; return ( ); } } module.exports = Footer;