1"use strict"; 2var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 if (k2 === undefined) k2 = k; 4 var desc = Object.getOwnPropertyDescriptor(m, k); 5 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 desc = { enumerable: true, get: function() { return m[k]; } }; 7 } 8 Object.defineProperty(o, k2, desc); 9}) : (function(o, m, k, k2) { 10 if (k2 === undefined) k2 = k; 11 o[k2] = m[k]; 12})); 13var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 14 Object.defineProperty(o, "default", { enumerable: true, value: v }); 15}) : function(o, v) { 16 o["default"] = v; 17}); 18var __importStar = (this && this.__importStar) || function (mod) { 19 if (mod && mod.__esModule) return mod; 20 var result = {}; 21 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 22 __setModuleDefault(result, mod); 23 return result; 24}; 25var __importDefault = (this && this.__importDefault) || function (mod) { 26 return (mod && mod.__esModule) ? mod : { "default": mod }; 27}; 28Object.defineProperty(exports, "__esModule", { value: true }); 29exports.LogBoxInspectorSection = void 0; 30/** 31 * Copyright (c) 650 Industries. 32 * Copyright (c) Meta Platforms, Inc. and affiliates. 33 * 34 * This source code is licensed under the MIT license found in the 35 * LICENSE file in the root directory of this source tree. 36 */ 37const react_1 = __importDefault(require("react")); 38const react_native_1 = require("react-native"); 39const LogBoxStyle = __importStar(require("../UI/LogBoxStyle")); 40function LogBoxInspectorSection(props) { 41 return (react_1.default.createElement(react_native_1.View, { style: styles.section }, 42 react_1.default.createElement(react_native_1.View, { style: styles.heading }, 43 react_1.default.createElement(react_native_1.Text, { style: styles.headingText }, props.heading), 44 props.action), 45 react_1.default.createElement(react_native_1.View, { style: styles.body }, props.children))); 46} 47exports.LogBoxInspectorSection = LogBoxInspectorSection; 48const styles = react_native_1.StyleSheet.create({ 49 section: { 50 marginTop: 15, 51 }, 52 heading: { 53 alignItems: 'center', 54 flexDirection: 'row', 55 paddingHorizontal: 12, 56 marginBottom: 10, 57 }, 58 headingText: { 59 color: LogBoxStyle.getTextColor(1), 60 flex: 1, 61 fontSize: 18, 62 fontWeight: '600', 63 includeFontPadding: false, 64 lineHeight: 20, 65 }, 66 body: { 67 paddingBottom: 10, 68 }, 69}); 70//# sourceMappingURL=LogBoxInspectorSection.js.map