@using Shared.DTOs

<div class="accordion-items">
    <h2 class="accordion-header" id="headingOne">
        <button class="accordion-buttons collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
            @qitem?.Title
            <span class="accordion-btn"></span>
        </button>
    </h2>
    <div id="collapseOne" class="accordion-collapse collapse" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
        <div class="accordion-body">
            @qitem?.Answer
        </div>
    </div>
</div>

@code {
    [Parameter]
    public QuestionDto? qitem { get; set; }
}
