BlazorStart/Start/Client/Components/BookmarkContainer.razor
2021-12-03 16:44:02 -08:00

34 lines
897 B
Plaintext

<div class="activeBookmarkContainer">
@if (this.Container == null)
{
<div class="empty">
<div class="empty-icon">
<div class="loading loading-icon"></div>
</div>
<p class="empty-title h5">Loading Bookmarks</p>
</div>
<p class="text-center">Loading Bookmarks</p>
}
else if (!this.Container.BookmarkGroups?.Any() ?? true)
{
<div class="empty">
<div class="empty-icon">
<i class="icon icon-3x icon-bookmark"></i>
</div>
<p class="empty-title h5">No Bookmark Groups</p>
</div>
}
else
{
foreach (BookmarkGroupDto group in this.Container.BookmarkGroups!)
{
<BookmarkGroup Group="group" />
}
}
</div>
@code {
[Parameter]
public BookmarkContainerDto? Container { get; set; }
}