UNPKG

@wordpress/components

Version:
31 lines (26 loc) 684 B
import { createElement } from "@wordpress/element"; /** * External dependencies */ import { Text, Linking } from 'react-native'; /** * WordPress dependencies */ import { usePreferredColorSchemeStyle } from '@wordpress/compose'; /** * Internal dependencies */ import styles from './styles.scss'; function FooterMessageLink(_ref) { let { href, value } = _ref; const textStyle = usePreferredColorSchemeStyle(styles.footerMessageLink, styles.footerMessageLinkDark); return createElement(Text, { style: textStyle, onPress: () => Linking.openURL(href) }, value); } export default FooterMessageLink; //# sourceMappingURL=footer-message-link.native.js.map