( function ( wp ) {
    'use strict';

    var __ = wp.i18n.__;
    var el = wp.element.createElement;

    wp.blocks.registerBlockType( 'ambassadorhub/user-info', {
        edit: function () {
            var props = wp.blockEditor.useBlockProps();
            return el(
                'div',
                props,
                el( 'div', { style: { padding: '16px', background: '#f0f0f1', border: '1px solid #ddd', textAlign: 'center' } },
                    __( 'User Info — displays the fundraiser owner\'s avatar, name, and active fundraiser count.', 'ambassadorhub' )
                )
            );
        },
        save: function () {
            return null;
        },
    } );
} )( window.wp );
