ProcessDetail.js (913B)
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 a process. 15 */ 16 class ProcessDetail extends PureComponent { 17 static get propTypes() { 18 return { 19 target: Types.debugTarget.isRequired, 20 }; 21 } 22 23 render() { 24 const { description } = this.props.target.details; 25 return dom.p( 26 { className: "debug-target-item__subname ellipsis-text" }, 27 description 28 ); 29 } 30 } 31 32 module.exports = ProcessDetail;