24 lines
752 B
Plaintext
24 lines
752 B
Plaintext
<MudPaper class="px-3 py-2 mx-1">
|
|
|
|
<div class="flex flex-row">
|
|
<div>
|
|
<p>@Question.Title</p>
|
|
<MudPaper Elevation="0"
|
|
Class="mt-1 bg-gray-200 w-fit text-center rounded-full py-0.5 px-3 text-gray-800 text-xs">
|
|
@Question.Type.ToString();
|
|
</MudPaper>
|
|
</div>
|
|
<MudIconButton @onclick="async ()=> await QuestionRemoved.InvokeAsync(Question)" class="mr-auto" Color="Color.Error" Icon="@Icons.Material.Filled.Close" />
|
|
</div>
|
|
</MudPaper>
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
public MedicalHistoryQuestion Question { get; set; } = new MedicalHistoryQuestion();
|
|
|
|
[Parameter]
|
|
public EventCallback<MedicalHistoryQuestion> QuestionRemoved { get; set; }
|
|
|
|
}
|