<?php
/**
 * Empty rewards view component.
 *
 * @package Awesomemotive\Rewardswp\Views\Panel\Parts
 * @since 1.0.0
 */

namespace Awesomemotive\Rewardswp\Views\Panel\Parts;

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

use Awesomemotive\Rewardswp\Abstracts\AbstractView;
use Awesomemotive\Rewardswp\Interfaces\ViewInterface;
use function Awesomemotive\Rewardswp\Helpers\is_rewardswp_admin_page;

class EmptyRewardsView extends AbstractView implements ViewInterface {
	/**
	 * Render the template.
	 *
	 * @since 1.0.0
	 *
	 * @param array $args
	 *
	 * @return void
	 */
	public function render( array $args = [] ): void {
		echo is_rewardswp_admin_page()
			? esc_html__( 'Set up Referral Rewards to see reward examples.', 'rewardswp' )
			: esc_html__( 'You have no rewards yet.', 'rewardswp' );
	}
}
