BracketArrow.js (827B)
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 import { div } from "devtools/client/shared/vendor/react-dom-factories"; 6 import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 7 8 const classnames = require("resource://devtools/client/shared/classnames.js"); 9 10 const BracketArrow = ({ orientation, left, top, bottom }) => { 11 return div({ 12 className: classnames("bracket-arrow", orientation || "up"), 13 style: { 14 left, 15 top, 16 bottom, 17 }, 18 }); 19 }; 20 21 BracketArrow.propTypes = { 22 bottom: PropTypes.number, 23 left: PropTypes.number, 24 orientation: PropTypes.string.isRequired, 25 top: PropTypes.number, 26 }; 27 28 export default BracketArrow;