tor-browser

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

TabDetail.js (899B)


      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
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 const {
      8  PureComponent,
      9 } = require("resource://devtools/client/shared/vendor/react.mjs");
     10 const dom = require("resource://devtools/client/shared/vendor/react-dom-factories.js");
     11 const Types = require("resource://devtools/client/aboutdebugging/src/types/index.js");
     12 
     13 /**
     14 * This component displays detail information for tab.
     15 */
     16 class TabDetail extends PureComponent {
     17  static get propTypes() {
     18    return {
     19      target: Types.debugTarget.isRequired,
     20    };
     21  }
     22 
     23  render() {
     24    return dom.div(
     25      {
     26        className: "debug-target-item__subname ellipsis-text",
     27        dir: "ltr",
     28      },
     29      this.props.target.details.url
     30    );
     31  }
     32 }
     33 
     34 module.exports = TabDetail;