// Add active class to the current button (highlight it)

// var header = document.getElementById("accordionSidebar");

// var btns = header.getElementsByClassName("nav-item");
// // var collapse = header.getElementsByClassName("collapse-item");

// for (var i = 0; i < btns.length; i++) {
//     // console.log(btns.length);
//     btns[i].addEventListener("click", function() {
//         console.log(btns.length);
//         var current = document.getElementsByClassName("active");

//         console.log(current.length);

//         // If there's no active class
//         if (current.length > 0) {
//             current[0].className = current[0].className.replace(" active", "");
//         }

//         console.log(current.length);
//         current[0].className = current[0].className.replace(" active", "");
//         this.className += " active";
//     });
// }