<?php
/**
 * Template for the AI product upsells generate button.
 *
 * @package SAAI
 * @var int $product_id The product ID.
 */

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

<div class="saai-generate-upsells-container">
    <button type="button" class="saai-button saai-button-main saai-button-left-icon" id="saai-generate-product-upsells" data-product-id="<?php echo esc_attr( $product_id ); ?>">
        <img src="<?php echo esc_url( SAAI_PLUGIN_URL . 'static/images/ai-icon.svg' ); ?>" alt="AI Icon" style="width: 16px; height: 16px;">
        <span class="saai-button-text"><?php esc_html_e( 'Generate with AI', 'storeagent-ai-for-woocommerce' ); ?></span>
    </button>
    <span class="spinner" style="margin: 0;"></span>
</div>
