"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PanelBody = PanelBody;
exports.default = void 0;
var _reactNative = require("react-native");
var _body = _interopRequireDefault(require("./body.scss"));
var _bottomSeparatorCover = _interopRequireDefault(require("./bottom-separator-cover"));
var _jsxRuntime = require("react/jsx-runtime");
/**
 * External dependencies
 */

/**
 * Internal dependencies
 */

function PanelBody({
  children,
  title,
  style,
  titleStyle = {}
}) {
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
    style: [_body.default.panelContainer, style],
    children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
      accessibilityRole: "header",
      style: [_body.default.sectionHeaderText, titleStyle],
      children: title
    }), children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSeparatorCover.default, {})]
  });
}
var _default = exports.default = PanelBody;
//# sourceMappingURL=body.native.js.map