<?php
use EasyChat\View\NotificationHealthFragments;

$health = isset($notification_health) && is_array($notification_health) ? $notification_health : [];
$chip = isset($notification_health_chip) && is_array($notification_health_chip) ? $notification_health_chip : [];
$pulse = isset($notification_health_pulse) && is_string($notification_health_pulse)
    ? $notification_health_pulse
    : (new NotificationHealthFragments())->pulse($health, $chip);
?>

<div class="notification-health-page">
    <input type="hidden" id="notification-health-csrf" name="csrf_token" value="<?php echo htmlspecialchars((string)($easychat_csrf_token ?? ''), ENT_QUOTES, 'UTF-8'); ?>">
    <?php echo $pulse; ?>
</div>
