1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2026-01-12 17:58:15 +01:00
Files
Minecraft-Phantom-Panel/Web/Phantom.Web/Pages/Index.razor
2025-08-21 20:31:21 +02:00

19 lines
283 B
Plaintext

@page "/"
@inherits PhantomComponent
<h1>Home</h1>
@if (username != null) {
<p>Welcome back, @username!</p>
}
@code {
private string? username = null;
protected override async Task OnInitializedAsync() {
username = (await GetAuthenticatedUser())?.Info.Name;
}
}