<?php
/**
 * Render wishlists class.
 *
 * @package SaveToWishlist\Classes\Admin
 * @since 1.0.0
 */
namespace SaveToWishlist\Classes\Admin;

use SaveToWishlist\Abstracts\Singleton;
use SaveToWishlist\Helpers\Helper_Functions;

/**
 * Class Render_Wishlists
 *
 * This class serves as the render wishlists class.
 */
class Render_Wishlists extends Singleton {

    /**
     * REST API URL.
     *
     * @var string
     */
    public $rest_api_url;

    /**
     * Products API URL.
     *
     * @var string
     */
    public $products_api_url;

    /**
     * Collections API URL.
     *
     * @var string
     */
    public $collections_api_url;

    /**
     * Users API URL.
     *
     * @var string
     */
    public $users_api_url;

    /**
     * Helper functions.
     *
     * @var Helper_Functions
     */
    private $helper_functions;

    /**
     * Constructor.
     *
     * @since 1.0.0
     * @access public
     */
    public function __construct() {
        $this->helper_functions = Helper_Functions::instance();
        $this->rest_api_url     = rest_url( 'saveto-wishlist/v1/admin/wishlists' );
        $this->products_api_url = rest_url( 'wc/v3/products' );
        $this->users_api_url    = rest_url( 'wp/v2/users' );
    }

    /**
     * Render the admin app for the wishlists page.
     *
     * @since 1.0.0
     * @access public
     */
    public function render_admin_app_wishlists() {
        echo '<div class="wrap"><div id="saveto-wishlist-admin-app-wishlists"></div></div>';
        echo wp_kses_post( apply_filters( 'stwlite_admin_app_after', '' ) );
    }
}
