Function
SidebarLink
({
href,
icon: Icon,
label,
className,
exact,
}: {
href: string;
icon: LucideIcon;
label: React.ReactNode;
className?: string;
exact?: boolean;
})
Source from the content-addressed store, hash-verified
| 4 | import { ProjectLink } from '@/components/links'; |
| 5 | |
| 6 | export function SidebarLink({ |
| 7 | href, |
| 8 | icon: Icon, |
| 9 | label, |
| 10 | className, |
| 11 | exact, |
| 12 | }: { |
| 13 | href: string; |
| 14 | icon: LucideIcon; |
| 15 | label: React.ReactNode; |
| 16 | className?: string; |
| 17 | exact?: boolean; |
| 18 | }) { |
| 19 | return ( |
| 20 | <ProjectLink |
| 21 | className={cn( |
| 22 | 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]', |
| 23 | className, |
| 24 | )} |
| 25 | href={href} |
| 26 | exact={exact} |
| 27 | > |
| 28 | <Icon size={20} /> |
| 29 | <div className="flex-1">{label}</div> |
| 30 | </ProjectLink> |
| 31 | ); |
| 32 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected