@using FoodsharingSiegen.Contracts.Enums
@code {

  [Parameter] public List<Prospect>? Prospects { get; set; }
  
  [Parameter] public ProspectStateFilter StateFilter { get; set; }
  
  [Parameter] public Func<Task>? OnDataChanged { get; set; }

  [Parameter] public string GridClass { get; set; } = string.Empty;

}
<h6>@(Prospects?.Count ?? 0) Ergebnisse</h6>

@if (Prospects?.Any() == true)
{
  <div class="prospect-grid @GridClass">
    <Repeater Items="@Prospects">
      <ProspectContainer 
        Prospect="context" 
        OnDataChanged="@OnDataChanged"
        StateFilter="StateFilter"></ProspectContainer>
    </Repeater>
  </div>
}