UNPKG

@wordpress/block-library

Version:
33 lines 836 B
/** * External dependencies */ import { View } from 'react-native'; /** * WordPress dependencies */ import { usePreferredColorSchemeStyle } from '@wordpress/compose'; /** * Internal dependencies */ import styles from './figure.scss'; import { jsx as _jsx } from "react/jsx-runtime"; export const Figure = ({ children, backgroundColor, borderColor }) => { const wpPullquoteFigure = usePreferredColorSchemeStyle(styles.light, styles.dark); const customStyles = {}; if (borderColor) { customStyles.borderTopColor = borderColor; customStyles.borderBottomColor = borderColor; } if (backgroundColor) { customStyles.backgroundColor = backgroundColor; } return /*#__PURE__*/_jsx(View, { style: [wpPullquoteFigure, customStyles], children: children }); }; //# sourceMappingURL=figure.native.js.map