<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }

// Load the existing render function.
require_once dirname( __DIR__, 3 ) . '/widgets/tags/widget-product-stock/elementor-render.php';

/**
 * Render callback for ggmc/product-stock block.
 */
function render_ggmc_product_stock_block( $attributes ) {
    $product_data = ggmc_block_get_product_data( $attributes );
    $adapter      = new GGMC_Block_Adapter( $attributes, $product_data );
    ob_start();
    ggmc_product_stock_render( $adapter );
    return ob_get_clean();
}
