@inherits ComponentBase

<TableContainer T="HostMemoryEntity"
                @ref="Container"
                @bind-Search="Search"
                Title="@Title"
                Breadcrumbs="@Breadcrumbs"
                Data="LoadDataAsync">
    <Header>
        <MudTh>
            <MudTableSortLabel SortLabel="Company" T="HostMemoryEntity">
                Company
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Name" T="HostMemoryEntity">
                Name
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Tag" T="HostMemoryEntity">
                Tag
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Location" T="HostMemoryEntity">
                Location
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Serial" T="HostMemoryEntity">
                Serial
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Capacity" T="HostMemoryEntity">
                Capacity
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Clock" T="HostMemoryEntity">
                Clock
            </MudTableSortLabel>
        </MudTh>
        <MudTh>
            <MudTableSortLabel SortLabel="Voltage" T="HostMemoryEntity">
                Voltage
            </MudTableSortLabel>
        </MudTh>
    </Header>
    <RowTemplate>
        <MudTd DataLabel="Company">
            @context.Company
        </MudTd>
        <MudTd DataLabel="Model">
            @context.Name
        </MudTd>
        <MudTd DataLabel="Tag">
            @context.Tag
        </MudTd>
        <MudTd DataLabel="Location">
            @context.Location
        </MudTd>
        <MudTd DataLabel="Serial">
            @context.Serial
        </MudTd>
        <MudTd DataLabel="Capacity">
            <MudTd DataLabel="Capacity">
                @if (context?.Capacity is not null)
                    @($"{Math.Round((context.Capacity.Value / Math.Pow(1024, 3)), 2)} GB")</MudTd>
            </MudTd>
            <MudTd DataLabel="Clock">
                @($"{context?.Clock} MHz")
        </MudTd>
        <MudTd DataLabel="Voltage">
            @if (context?.Voltage is not null)
                @($"{(float)context.Voltage / 1000} V")
        </MudTd>
    </RowTemplate>
</TableContainer>