1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-09-05 22:53:11 +02:00
Files
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;
}
}