<?php
/**
 * Template for generating the AI product tags button.
 *
 * @package SAAI
 * @var int    $product_id The product ID.
 * @var bool   $has_tags Whether the product already has tags.
 * @var string $disclaimer_text The disclaimer text, if enabled.
 * @var bool   $show_disclaimer Whether to show the disclaimer.
 */

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

<div class="saai-generate-tags-container">
    <button type="button" class="saai-button saai-button-main saai-button-left-icon" id="saai-generate-product-tags" data-product-id="<?php echo esc_attr( $product_id ); ?>" data-has-tags="<?php echo esc_attr( $has_tags ? 'true' : 'false' ); ?>">
        <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>
