@page "/person/{Address}"
@inject State State
@Address
@if (bio == null)
{
Getting Bio...
}
else {
@bio
}
@code {
[Parameter]
public string Address { get; set; }
private EditPicDialog? editPicDialog { get; set; }
private bool Editable {
get => Address == State.SelectedAddressName;
}
private MarkupString? bio;
protected override async Task OnInitializedAsync() {
bio = await State.GetBio(Address);
}
}