<?php

// require_once( dirname( __DIR__ ) . '/class-react-app.php' );

class DragBlock_Google_Fonts
{
	public static function google_fonts_admin_page()
	{
		DragBlock_React_App::bootstrap();
		$app_nonce = esc_attr(wp_create_nonce('dragblock_font_library'));
		$app_html = "<input id=\"nonce\" type=\"hidden\" value=\"{$app_nonce}\" />";
		$app_html .= '<div id="dragblock-font-library-app"></div>';
		// Define an array of allowed HTML tags and attributes
		$allowed_html = array(
			'p' => array(
				'name' => true,
				'id' => true,
				'class' => true,
			),
			'div' => array(
				'id' => true,
			),
			'input' => array(
				'type' => true,
				'name' => true,
				'id' => true,
				'value' => true,
			),
		);
		echo wp_kses($app_html, $allowed_html);
	}
}
