mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-13 19:56:41 +09:00
35 lines
508 B
JavaScript
35 lines
508 B
JavaScript
/**
|
|
* WordPress dependencies
|
|
*/
|
|
import { BlockControls } from '@wordpress/editor';
|
|
|
|
const { __ } = wp.i18n;
|
|
const {
|
|
Icon,
|
|
Button,
|
|
Toolbar,
|
|
} = wp.components;
|
|
|
|
const EmbedControls = ( props ) => {
|
|
const {
|
|
switchBackToURLInput,
|
|
} = props;
|
|
|
|
return (
|
|
<>
|
|
<BlockControls>
|
|
<Toolbar>
|
|
<Button
|
|
label={ __( 'Edit URL' ) }
|
|
onClick={ switchBackToURLInput }
|
|
>
|
|
<Icon icon="edit" />
|
|
</Button>
|
|
</Toolbar>
|
|
</BlockControls>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default EmbedControls;
|