@inherits ComponentBase



@if (true)
{
    return;
}

<BaseContainer Title="@_title">
    <Content>
        <div class="h-100" style="display:flex; height: 90vh; margin: auto;">
            <div style="margin:auto; height: 35vh;">
                <MudGrid>
                    <MudItem xs="12" md="12" lg="12">
                        <MudTextField T="string" Label="Authenticator Token" Placeholder="Token" @bind-Value="_code"
                                      AutoFocus Variant="Variant.Outlined" />
                    </MudItem>
                    <MudItem xs="12" md="12" lg="12" Class="d-flex justify-center">
                        <MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="Color.Surface" Size="Size.Large" Style="width: 100%;" OnClick="()=>Submit(_code)">
                            Login
                        </MudButton>
                    </MudItem>
                </MudGrid>
            </div>
        </div>
    </Content>
</BaseContainer>

@code{
    private string? _code;
}