( function( blocks, element, blockEditor ) {
    var el = element.createElement;
    var registerBlockType = blocks.registerBlockType;
    var useBlockProps = blockEditor.useBlockProps;

    registerBlockType( 'fluentc/languages-block', {
        title: 'FluentC Languages',
        icon: 'translation',
        category: 'widgets',
        parent: ['core/navigation'],
        
        edit: function() {
            var blockProps = useBlockProps();
            return el(
                'div',
                blockProps,
                'FluentC Languages'
            );
        },
        
        save: function() {
            return el(
                'div',
                { 
                    className: 'fluentc-widget-wrapper wp-core-ui select-dropdown'
                },
                el(
                    'div',
                    { id: 'fluentc-widget' }
                )
            );
        },
    } );

} )( window.wp.blocks, window.wp.element, window.wp.blockEditor );