UNPKG

@wordpress/components

Version:
25 lines (23 loc) 604 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({ children, title, style = {} }) { return createElement(View, { style: [styles.panelContainer, style] }, title && createElement(Text, { style: styles.sectionHeaderText }, title), children, createElement(BottomSeparatorCover, null)); } export default PanelBody; //# sourceMappingURL=body.native.js.map