@using static TechHelper.Client.Pages.Student.BaseInfoCard.StudentSubmissionPreviewTableCard


@if(StudentSubmission!=null)
{
    <MudPaper Class="ma-2 pa-2 rounded-xl d-flex w-100 flex-nowrap">
        <MudText Class="flex-grow-0 flex-shrink-0" Style="width:60%">               @StudentSubmission.StudentName </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%">  @StudentSubmission.TotalProblems </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> @StudentSubmission.ErrorCount </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> @StudentSubmission.TimeSpent </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> @StudentSubmission.Score </MudText>
    </MudPaper>
}
else
{
    <MudPaper Class="ma-1 pa-2 rounded-xl d-flex w-100 flex-nowrap">
        <MudText Class="flex-grow-0 flex-shrink-0" Style="width:60%">  名称 </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> 题目总数 </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> 错误总数 </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> 时间 </MudText>
        <MudText Class="flex-grow-0 flex-shrink-0 text-start" Style="width:10%"> 得分 </MudText>
    </MudPaper>
}
@code{

    [Parameter]
    public StudentSubmission StudentSubmission{ get; set; }
}