<?php
if (!defined('WPINC')) {
    die();
}

use EstatebudConnect\Utilities\Helper;
use EstatebudConnect\Configs\Icons;

$icon_close_btn = Icons::get_svg_icon('xmark-large', Icons::SHAPE_SHARP, Icons::STYLE_REGULAR, 21, 21, '#858585');
?>
<div class="estatebud-modal-wrapper is-active">
    <div class="estatebud-modal-content">
        <div class="estatebud-modal-content-header">
            <div class="estatebud-table-content-header-title">
                Share with agent
            </div>
            <div class="estatebud-table-content-header-close-btn">
                <?php echo wp_kses($icon_close_btn, Icons::get_kses_ruleset()); ?>
            </div>
        </div>
        <div class="estatebud-modal-content-form-group">
            <?php Helper::render_markup_from_views('Public/partials/components/form.php', [
                'form_id' => $form_id,
                'settings_data' => $settings_data,
                'form_data' => $form_data,
                'field_options' => $field_options,
            ]); ?>
        </div>
    </div>
</div>