summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/shortlinks/index.js')
-rw-r--r--plugins/jetpack/extensions/blocks/shortlinks/index.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/plugins/jetpack/extensions/blocks/shortlinks/index.js b/plugins/jetpack/extensions/blocks/shortlinks/index.js
deleted file mode 100644
index 16d9b8b7..00000000
--- a/plugins/jetpack/extensions/blocks/shortlinks/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * External dependencies
- */
-import { __ } from '@wordpress/i18n';
-import { Component } from '@wordpress/element';
-import { get } from 'lodash';
-import { PanelBody } from '@wordpress/components';
-import { withSelect } from '@wordpress/data';
-
-/**
- * Internal dependencies
- */
-import ClipboardInput from '../../shared/clipboard-input';
-import JetpackPluginSidebar from '../../shared/jetpack-plugin-sidebar';
-
-export const name = 'shortlinks';
-
-export const settings = {
- render: () => <Shortlinks />,
-};
-
-class ShortlinksPanel extends Component {
- render() {
- const { shortlink } = this.props;
-
- if ( ! shortlink ) {
- return null;
- }
-
- return (
- <JetpackPluginSidebar>
- <PanelBody title={ __( 'Shortlink', 'jetpack' ) } className="jetpack-shortlinks__panel">
- <ClipboardInput link={ shortlink } />
- </PanelBody>
- </JetpackPluginSidebar>
- );
- }
-}
-
-const Shortlinks = withSelect( select => {
- const currentPost = select( 'core/editor' ).getCurrentPost();
- return {
- shortlink: get( currentPost, 'jetpack_shortlink', '' ),
- };
-} )( ShortlinksPanel );