summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/simple-payments/save.js')
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/save.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/simple-payments/save.js b/plugins/jetpack/extensions/blocks/simple-payments/save.js
new file mode 100644
index 00000000..ed81e7a8
--- /dev/null
+++ b/plugins/jetpack/extensions/blocks/simple-payments/save.js
@@ -0,0 +1,9 @@
+/**
+ * External dependencies
+ */
+import { RawHTML } from '@wordpress/element';
+
+export default function Save( { attributes } ) {
+ const { productId } = attributes;
+ return productId ? <RawHTML>{ `[simple-payment id="${ productId }"]` }</RawHTML> : null;
+}