{adminLinks.map((link) => {
const isActive = pathname.startsWith(link.href);
return (
{link.icon}
{link.label}
{isActive && (
)}
);
})}
{setupOpen && (
{setupLinks.map((link) => {
const isActive = pathname === link.href || pathname.startsWith(link.href + "/");
return (
{link.icon}
{link.label}
{isActive && (
)}
);
})}
)}
>
) : (
<>
{}
{teacherLinks.map((link) => {
const isActive = pathname.startsWith(link.href);
const isReviewLink = link.href === "/teacher/review";
return (
{link.icon}
{link.label}
{isReviewLink && flaggedCount > 0 && (
{flaggedCount > 99 ? "99+" : flaggedCount}
)}
{isActive && !isReviewLink && (
)}
);
})}
{}