@using RackPeek.Domain.Resources.Hardware.Models
@Switch.Name
@if (!string.IsNullOrWhiteSpace(Switch.Model)) { @Switch.Model }
@if (Switch.Managed is not null || Switch.Poe is not null) {
Features
@if (Switch.Managed == true) { Managed } @if (Switch.Poe == true) { PoE }
} @if (Switch.Ports?.Any() == true) {
Ports
@foreach (var port in Switch.Ports) {
@port.Count× @port.Type — @port.Speed Gbps
}
}
@code { [Parameter][EditorRequired] public Switch Switch { get; set; } = default!; }