Iceshrimp.NET/Iceshrimp.Frontend/Components/NotificationList.razor

29 lines
556 B
Text

@using Iceshrimp.Frontend.Core.Miscellaneous
@using Iceshrimp.Frontend.Core.Services
@using Iceshrimp.Shared.Schemas
@if (_state == State.Init)
{
<div class="scroller">
@foreach (var el in Notifications)
{
<NotificationComponent NotificationResponse="el" @key="el.Id"/>
}
<ScrollEnd ManualLoad="LoadMore" IntersectionChange="LoadMore"></ScrollEnd>
</div>
}
@if (_state == State.Loading)
{
<div>Loading!</div>
}
@if (_state == State.Error)
{
<div>Something went wrong!</div>
}
@code {
}