@using Shogi.Contracts.Types
@if (string.IsNullOrEmpty(Name))
{
Empty Seat
}
else
{
@Name
}
@if (IsTurn)
{
Turn
}
@if (InCheck)
{
Check
}
@if (IsVictor)
{
Victor
}
@code {
[Parameter][EditorRequired] public bool IsTurn { get; set; }
[Parameter][EditorRequired] public bool InCheck { get; set; }
[Parameter][EditorRequired] public bool IsVictor { get; set; }
[Parameter][EditorRequired] public string Name { get; set; } = string.Empty;
}