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/. */
7 * @typedef {{}} Props - This is an empty object.
15 } = require("resource://devtools/client/shared/vendor/react.js");
20 } = require("resource://devtools/client/shared/vendor/react-dom-factories.js");
21 const Localized
= createFactory(
22 require("resource://devtools/client/shared/vendor/fluent-react.js").Localized
26 * This component provides a helpful description for what is going on in the component
27 * and provides some external links.
28 * @extends {React.PureComponent<Props>}
30 class Description
extends PureComponent
{
32 * @param {React.MouseEvent<HTMLButtonElement>} event
34 handleLinkClick
= event
=> {
37 } = require("resource://devtools/client/shared/link.js");
39 /** @type HTMLButtonElement */
40 const target
= /** @type {any} */ (event
.target
);
42 openDocLink(target
.value
, {});
47 { className
: "perf-description" },
50 id
: "perftools-description-intro",
52 className
: "perf-external-link",
53 onClick
: this.handleLinkClick
,
54 value
: "https://profiler.firefox.com",
63 module
.exports
= Description
;