import { Icon } from '@/components/icon'; import { SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from '@/components/ui/sidebar'; import { resolveUrl } from '@/lib/utils'; import { type NavItem } from '@/types'; import { __ } from '@/utils/i18n'; import { LucideIcon } from 'lucide-react'; import { isValidElement, type ComponentPropsWithoutRef } from 'react'; export function NavFooter({ items, className, ...props }: ComponentPropsWithoutRef & { items: NavItem[]; }) { return ( {items.map((item) => ( {__(item.title)} ))} ); } function IconOrComponent({ icon }: { icon: React.ReactNode | LucideIcon }) { if (isValidElement(icon)) { return icon; } return ; }