@page "/all"

@using FoodsharingSiegen.Shared.Helper
@inherits FsBase

<PageTitle>Freischalten - @AppSettings.Terms.Title</PageTitle>

<h2>Freischalten</h2>

@{
    var filterList = ProspectList.ApplyFilter(Filter);
}

<hr/>
<ProspectFilterControl @bind-Filter="Filter" StateFilter="ProspectStateFilter.All"></ProspectFilterControl>
<hr />
<ProspectGrid
    Prospects="filterList"
    OnDataChanged="@LoadProspects"
    StateFilter="ProspectStateFilter.All">
</ProspectGrid>