@inherits ComponentBase
@using Insight.Web.Extensions

<TableContainer T="ViewModel"
                @ref="Container"
                @bind-Search="Search"
                Title="@Title"
                Breadcrumbs="@Breadcrumbs"
                Data="LoadDataAsync">
    <Header>
        <MudTh>
            <MudTableSortLabel SortLabel="Address" T="ViewModel">
                Address
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Hosts" T="ViewModel">
                Hosts
            </MudTableSortLabel>
        </MudTh>
    </Header>
    <RowTemplate>
        <MudTd DataLabel="Address">
            @context?.Address
        </MudTd>
        <MudTd DataLabel="Hosts">
            <MudLink Href="@Navigation.Inventory.Network.Nameservers.HostsHref(context?.Address?.UriEscape())" Typo="Typo.inherit" Underline="Underline.None">
                @context?.Hosts
            </MudLink>
        </MudTd>
    </RowTemplate>
</TableContainer>