import type { ComponentPropsWithoutRef } from 'react'; import { SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from '@/components/ui/sidebar'; import { toUrl } from '@/lib/utils'; import type { NavItem } from '@/types'; export function NavFooter({ items, className, ...props }: ComponentPropsWithoutRef & { items: NavItem[]; }) { return ( {items.map((item) => ( {item.icon && ( )} {item.title} ))} ); }