add some more icons

This commit is contained in:
Milo Schwartz 2024-11-16 12:18:22 -05:00
parent 3c7b2c03f8
commit 587bb758a2
No known key found for this signature in database
6 changed files with 24 additions and 7 deletions

View file

@ -17,6 +17,7 @@ interface SidebarNavProps extends React.HTMLAttributes<HTMLElement> {
items: {
href: string;
title: string;
icon?: React.ReactNode;
}[];
disabled?: boolean;
}
@ -105,7 +106,14 @@ export function SidebarNav({
tabIndex={disabled ? -1 : undefined}
aria-disabled={disabled}
>
{item.title}
{item.icon ? (
<div className="flex items-center space-x-2">
{item.icon}
<span>{item.title}</span>
</div>
) : (
item.title
)}
</Link>
))}
</nav>