@wordpress/components
Version:
UI components for WordPress.
28 lines (27 loc) • 725 B
JavaScript
/**
* External dependencies
*/
import { Text, View } from 'react-native';
/**
* Internal dependencies
*/
import styles from './body.scss';
import BottomSeparatorCover from './bottom-separator-cover';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export function PanelBody({
children,
title,
style,
titleStyle = {}
}) {
return /*#__PURE__*/_jsxs(View, {
style: [styles.panelContainer, style],
children: [title && /*#__PURE__*/_jsx(Text, {
accessibilityRole: "header",
style: [styles.sectionHeaderText, titleStyle],
children: title
}), children, /*#__PURE__*/_jsx(BottomSeparatorCover, {})]
});
}
export default PanelBody;
//# sourceMappingURL=body.native.js.map