<MudCard @onclick="(async () => { await Clicked.InvokeAsync(MedicalHistoryTemplate); })" Elevation="2" class="rounded-lg">
    <MudCardContent>
        <p class="text-center font-extrabold mt-1 text-gray-600 text-lg">@MedicalHistoryTemplate.CC</p>
                       
        <MudPaper Elevation="0"
                  class="bg-[#FFDACF] text-center text-[#D03405] rounded-full py-0.5 mt-3 mr-auto text-xs font-iranyekan">
            <p>بخش @MedicalHistoryTemplate.Section</p>
        </MudPaper>
    </MudCardContent>
</MudCard>

@code {

    [Parameter]
    public MedicalHistoryTemplate MedicalHistoryTemplate { get; set; } = new();

    [Parameter]
    public EventCallback<MedicalHistoryTemplate> Clicked { get; set; }
}
