tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

MoreRecommendations.jsx (601B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 import React from "react";
      6 
      7 export class MoreRecommendations extends React.PureComponent {
      8  render() {
      9    const { read_more_endpoint } = this.props;
     10    if (read_more_endpoint) {
     11      return (
     12        <a
     13          className="more-recommendations"
     14          href={read_more_endpoint}
     15          data-l10n-id="newtab-pocket-more-recommendations"
     16        />
     17      );
     18    }
     19    return null;
     20  }
     21 }