/**
 * Donation Confirmation Block - Editor Registration
 */
(function() {
	var registerBlockType = wp.blocks.registerBlockType;
	var el = wp.element.createElement;
	var __ = wp.i18n.__;

	registerBlockType( 'ambassadorhub/donation-confirmation', {
		edit: function() {
			var blockProps = wp.blockEditor.useBlockProps();
			return el(
				'div',
				blockProps,
				el(
					'div',
					{ style: { padding: '20px', background: '#f0f0f1', border: '1px solid #ddd', textAlign: 'center' } },
					__( 'Donation Confirmation', 'ambassadorhub' )
				)
			);
		},
		save: function() {
			// Server-side rendered.
			return null;
		},
	} );
})();
