@wordpress/components
Version:
UI components for WordPress.
29 lines (24 loc) • 590 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* External dependencies
*/
import { Text, Linking } from 'react-native';
/**
* WordPress dependencies
*/
import { withPreferredColorScheme } from '@wordpress/compose';
/**
* Internal dependencies
*/
import styles from './styles.scss';
function FooterMessageLink({
href,
value
}) {
return createElement(Text, {
style: styles.footerMessageLink,
onPress: () => Linking.openURL(href)
}, value);
}
export default withPreferredColorScheme(FooterMessageLink);
//# sourceMappingURL=footer-message-link.native.js.map