<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
class Sifency_Admin_Import_UI {
	private $theme_name;
	private $theme_slug;
	private $section_slug;

	public function __construct( $theme_name, $theme_slug, $section_slug ) {
		$this->theme_name   = $theme_name;
		$this->theme_slug   = $theme_slug;
		$this->section_slug = $section_slug;
	}

	public function render() {
		ob_start();
		?>
		<p class="csf-text-muted">
			<?php esc_html_e( 'Use these buttons to apply the theme options, styles, and widget placements from your demo files.', 'sifency-addons' ); ?>
		</p>
		<div class="sifency-export-grid">
			<div class="sifency-export-item">
				<h3><?php esc_html_e( 'Customizer Settings (.dat)', 'sifency-addons' ); ?></h3>
				<p><?php esc_html_e( 'Imports WordPress Customizer settings.', 'sifency-addons' ); ?></p>
				<?php echo wp_kses_post( Sifency_Admin_Button_Generator::create_import_button( 'customizer', 'Import Customizer', $this->section_slug ) ); ?>
			</div>
			<div class="sifency-export-item">
				<h3><?php esc_html_e( 'Widget Settings (.wie)', 'sifency-addons' ); ?></h3>
				<p><?php esc_html_e( 'Imports all widgets and sidebar placements.', 'sifency-addons' ); ?></p>
				<?php echo wp_kses_post( Sifency_Admin_Button_Generator::create_import_button( 'widgets', 'Import Widgets', $this->section_slug ) ); ?>
			</div>
			<div class="sifency-export-item">
				<h3><?php esc_html_e( 'Elementor Kit (.json)', 'sifency-addons' ); ?></h3>
				<p><?php esc_html_e( 'Imports Elementor global styles and settings.', 'sifency-addons' ); ?></p>
				<?php echo wp_kses_post( Sifency_Admin_Button_Generator::create_import_button( 'elementor_kit', 'Import Elementor Kit', $this->section_slug ) ); ?>
			</div>
		</div>
		<?php
		return ob_get_clean();
	}
}
