/** * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style 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 (
{props.config.projectName}
); } SocialFooter.propTypes = { config: PropTypes.object }; class Footer extends React.Component { docUrl(doc, language) { const baseUrl = this.props.config.baseUrl; const docsUrl = this.props.config.docsUrl; const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`; const langPart = `${language ? `${language}/` : ''}`; return `${baseUrl}${docsPart}${langPart}${doc}`; } pageUrl(doc, language) { const baseUrl = this.props.config.baseUrl; return baseUrl + (language ? `${language}/` : '') + doc; } render() { const repoUrl = `https://github.com/${this.props.config.organizationName}/${this.props.config.projectName}`; return ( ); } } module.exports = Footer;