Guest User

Untitled

a guest
Nov 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. import Content from './renderer';
  2. import Editor from './editor';
  3.  
  4. const {Component, Fragment} = wp.element;
  5. const {Toolbar, IconButton} = wp.components;
  6. const {BlockControls} = wp.editor;
  7. const {__} = wp.i18n;
  8.  
  9. class Step extends Component {
  10. constructor() {
  11. super(...arguments);
  12. }
  13.  
  14. render() {
  15. return (
  16. <Fragment>
  17. <BlockControls>
  18. <Toolbar>
  19. <IconButton
  20. label={ __('Edit Step') }
  21. icon="edit"
  22. />
  23. </Toolbar>
  24. </BlockControls>
  25. <Editor {...this.props}/>
  26. </Fragment>
  27. );
  28. }
  29. }
  30.  
  31. Step.Content = Content;
  32.  
  33. export default Step;
Add Comment
Please, Sign In to add comment