@inherits ComponentBase

<BaseContainer Title="@Title" Breadcrumbs="@Breadcrumbs" LoadData="LoadDataAsync">
    <Content>
        @if (Customer is not null)
        {
            <MudGrid>
                <MudItem xs="12" sm="6" md="6" lg="3">
                    <KeyValueCard T="string" Key="Name" Value="@Customer.Name" />
                </MudItem>
                <MudItem xs="12" sm="6" md="6" lg="3">
                    <KeyValueCard T="string" Key="Tag" Value="@(Customer.Tag ?? "-")" />
                </MudItem>
                <MudItem xs="12" sm="6" md="6" lg="3">
                    <KeyValueCard T="int" Href="@Navigation.Management.Customers.HostsHref(CustomerId)" Key="Hosts" Value="@(Customer?.Hosts?.Count() ?? 0)" Icon="@Icons.Material.Outlined.Devices" IconColor="Color.Primary" />
                </MudItem>
            </MudGrid>
        }
    </Content>
</BaseContainer>