UNPKG

@wordpress/components

Version:
28 lines (26 loc) 694 B
import { createElement } from "@wordpress/element"; /** * External dependencies */ import { Text, View } from 'react-native'; /** * Internal dependencies */ import styles from './body.scss'; import BottomSeparatorCover from './bottom-separator-cover'; export function PanelBody(_ref) { let { children, title, style, titleStyle = {} } = _ref; return createElement(View, { style: [styles.panelContainer, style] }, title && createElement(Text, { accessibilityRole: "header", style: [styles.sectionHeaderText, titleStyle] }, title), children, createElement(BottomSeparatorCover, null)); } export default PanelBody; //# sourceMappingURL=body.native.js.map