PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.1.4
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.1.4
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / admin / pages / demo / create-block-button.js

create-block-button.js in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 3.1.4, at admin/pages/demo/create-block-button.js

31 lines 656 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {
2 Button,
3 Tooltip,
4 Dashicon
5 } from '@wordpress/components';
6
7 const { __ } = wp.i18n;
8
9 const CreateBlockButton = ({ href }) => {
10
11 return (
12 <Tooltip
13 text={__('Create Page with Template', 'blockspare')}
14 >
15 <Button
16 isSmall
17 className="bs-layout-action-button bs-layout-create-block-button"
18 href={href}
19 target='_blank'
20 >
21 <Dashicon
22 icon={'plus-alt2'}
23 className='bs-layout-action-button-icon'
24 />
25 </Button>
26 </Tooltip>
27 )
28 }
29
30 export default CreateBlockButton
31