@page "/exam"
@using TechHelper.Client.Pages.Student.BaseInfoCard
@inject NavigationManager NavigationManager

<AuthorizeView Roles="Teacher">
	<Authorized>
		<MudPaper Class="rounded-xl ma-2 px-2 overflow-auto w-100 h-100">
			<StudentSubmissionPreviewTableCard />
		</MudPaper>
	</Authorized>
</AuthorizeView>


<AuthorizeView Roles="Student">
	<Authorized>
		<MudPaper Class="rounded-xl ma-2 px-2 overflow-auto w-100 h-100">
			<StudentSubmissionPreviewTableCard />
		</MudPaper>
	</Authorized>
</AuthorizeView>
@code {


	[CascadingParameter]
	private Task<AuthenticationState> authenticationStateTask { get; set; }

	protected override void OnParametersSet()
	{
		if (authenticationStateTask is null)
		{
			NavigationManager.Refresh(forceReload: true);
		}
	}
}
