( function ( wp ) {
    'use strict';

    var __ = wp.i18n.__;
    var el = wp.element.createElement;
    var blockProps = wp.blockEditor.useBlockProps;

    wp.blocks.registerBlockType( 'ambassadorhub/team-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' } },
                    __( 'Team Info — visible only on individual fundraiser pages that belong to a team.', 'ambassadorhub' )
                )
            );
        },
        save: function () {
            return null;
        },
    } );
} )( window.wp );
