<?php
/**
 * @author     FutrX
 * @year       2023
 * @package    futrx.com
 * @subpackage NoMoreBots\Admin\Pages
 */

namespace NoMoreBots\Admin\Pages;

use Carbon_Fields\Container;
use NoMoreBots\Admin\Pages\BlockedList\HoneyPot;


class BlockedList {

	public static function render(): void {
		global $NoMoreBotsSettingsContainer;
		// Create a new container object for the settings page
		Container::make( 'theme_options', 'Blocked List' )
				->set_page_parent( $NoMoreBotsSettingsContainer )
				->add_tab( 'HoneyPot', self::honeyPotTab() );
	}

	/**
	 * Register the "HoneyPot" tab.
	 *
	 * @return array
	 */
	public static function honeyPotTab(): array {
		$fields   = array();
		$fields[] = HoneyPot::getListOfBlockedIpsField();

		return $fields;
	}
}
