setIsModalOpen( false ) }
+ >
+ { emailSent ? (
+ { __( 'Email sent successfully', 'jetpack' ) }
+ ) : (
+ <>
+
+
+ >
+ ) }
+
+ ) }
+ >
+ );
+};
+
+export default compose( [
+ withSelect( select => {
+ return {
+ postId: select( 'core/editor' ).getCurrentPostId(),
+ };
+ } ),
+] )( PreviewEmail );