@using PlanTempus.Application.Features.Dashboard.Components

<swp-waitlist-drawer data-drawer="lg" id="waitlist-drawer">
    <swp-drawer-header>
        <swp-drawer-title>
            <span localize="dashboard.waitlist.title">Venteliste</span> <swp-count>(@WaitlistItemCatalog.AllKeys.Count())</swp-count>
        </swp-drawer-title>
        <swp-drawer-close data-drawer-close>
            <i class="ph ph-x"></i>
        </swp-drawer-close>
    </swp-drawer-header>

    <swp-drawer-body>
        <swp-waitlist-list>
            @foreach (var key in WaitlistItemCatalog.AllKeys)
            {
                @await Component.InvokeAsync("WaitlistItem", key)
            }
        </swp-waitlist-list>
    </swp-drawer-body>
</swp-waitlist-drawer>
