@using MP.MONO.Core
@if (showSection) {
@if (currInfo == null || currInfo.Count == 0) { } else { }
} @code { [Parameter] public string ParamName { get; set; } = "ND"; [Parameter] public string btnType { get; set; } = "btn-primary"; [Parameter] public Dictionary currInfo { get; set; } = new Dictionary(); [Parameter] public bool showSection { get; set; } = false; protected void toggleDisplay() { showSection = !showSection; } protected string caretIcon { get => showSection ? "bi bi-caret-up-square-fill" : "bi bi-caret-down-square-fill"; } }