FrameIndent.js (611B)
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 React from "devtools/client/shared/vendor/react"; 6 7 export default function FrameIndent({ indentLevel = 1 } = {}) { 8 // \xA0 represents the non breakable space 9 const indentWidth = 4 * indentLevel; 10 const nonBreakableSpaces = "\xA0".repeat(indentWidth); 11 return React.createElement( 12 "span", 13 { 14 className: "frame-indent clipboard-only", 15 }, 16 nonBreakableSpaces 17 ); 18 }