<?php
/**
 * Cabecera visual reutilizable para modales nativos.
 * Variables: $saModal = ['eyebrow','title','description','icon'].
 */
$saModal = isset($saModal) && is_array($saModal) ? $saModal : [];
?>
<header class="sa-modal-header">
    <span class="sa-modal-header__icon" aria-hidden="true"><i class="fas <?= sa_e($saModal['icon'] ?? 'fa-pen-to-square') ?>"></i></span>
    <div><span class="sa-modal-header__eyebrow"><?= sa_e($saModal['eyebrow'] ?? 'GESTIÓN SUPERADMIN · FORMULARIO') ?></span><h2><?= sa_e($saModal['title'] ?? 'Formulario') ?></h2><?php if (!empty($saModal['description'])): ?><p><?= sa_e($saModal['description']) ?></p><?php endif; ?></div>
</header>
