<?php
/**
 * @link https://www.humhub.org/
 * @copyright Copyright (c) HumHub GmbH & Co. KG
 * @license https://www.humhub.com/licences
 */

use humhub\widgets\bootstrap\Button;

/* @var Button[] $buttons */
/* @var array $options */
?>
<div class="btn-group dropdown calendar-entry-participants-export-button float-end">
    <?= Button::accent()->icon('download')->sm()
        ->link($buttons[0]->getHref())
        ->pjax(false)->loader(false) ?>
    <?= Button::accent('')->sm()
        ->cssClass('dropdown-toggle')
        ->options(['data-bs-toggle' => 'dropdown'])
        ->loader(false) ?>
    <ul class="dropdown-menu">
        <?php foreach ($buttons as $button) : ?>
            <li><?= $button->pjax(false)->sm()->cssClass('dropdown-item') ?></li>
        <?php endforeach; ?>
    </ul>
</div>
