| 1 |
( function( blocks, element ) { |
| 2 |
let el = element.createElement, |
| 3 |
registerBlockType = blocks.registerBlockType; |
| 4 |
|
| 5 |
registerBlockType( |
| 6 |
'cookiebot/cookie-declaration', |
| 7 |
{ |
| 8 |
apiVersion: 3, |
| 9 |
title: 'Cookie Declaration', |
| 10 |
keywords: ['cookiebot'], |
| 11 |
icon: 'media-spreadsheet', |
| 12 |
category: 'widgets', |
| 13 |
edit: function(props) { |
| 14 |
return el( |
| 15 |
'i', |
| 16 |
{}, |
| 17 |
'Cookiebot Cookie Declaration' |
| 18 |
); |
| 19 |
}, |
| 20 |
save: function() { |
| 21 |
return null; |
| 22 |
}, |
| 23 |
} |
| 24 |
); |
| 25 |
}( |
| 26 |
window.wp.blocks, |
| 27 |
window.wp.element, |
| 28 |
) ); |
| 29 |
|