<?php
if ( ! class_exists( 'WFOCU_Guten_Reject_Button' ) ) {
	class WFOCU_Guten_Reject_Button extends WFOCU_Guten_Field {
		public $slug = 'wfocu_reject_button';
		protected $id = 'wfocu_reject_button';

		public function __construct() {
			$this->name = __( "WF Reject Button" );
			parent::__construct();
		}


		public function html( $settings, $content = '' ) {//phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedParameter
			$sel_product_key     = isset( $settings['product'] ) ? $settings['product'] : '';
			$product_key         = WFOCU_Common::default_selected_product_key( $sel_product_key );
			$settings['product'] = ( $product_key !== false ) ? $product_key : $sel_product_key;

			return BWFBlocksUpsell_Render_Block::do_button_block( $settings, $content );
		}


	}

	return new WFOCU_Guten_Reject_Button;
}