Files
BQP/srcs/RobotNet10/FleetManager/RobotNet10.FleetManager.Client/Components/RobotMonitor/RobotInfoPanel.razor
2026-07-13 09:25:40 +07:00

28 lines
869 B
Plaintext

@using MudBlazor
@using RobotNet10.FleetManager.Client.Services
<div class="pa-4 robot-info-panel">
<MudStack Spacing="3">
<!-- Header -->
<MudText Typo="Typo.h6" Class="mb-2">Robot Information</MudText>
@if (State.SelectedRobotId != null && State.Robots.TryGetValue(State.SelectedRobotId, out var robot))
{
<SelectedRobotInfo RobotData="robot" State="State" />
}
else
{
<MudAlert Severity="Severity.Info" Variant="Variant.Text" Class="mt-4">
<MudText Typo="Typo.body2">
No robot selected. Click on a robot on the map to view its information.
</MudText>
</MudAlert>
}
</MudStack>
</div>
@code {
[Parameter]
public RobotMonitorState State { get; set; } = null!;
}