"use client"; import { LucideIcon } from "lucide-react"; import { SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "@/components/ui/sidebar"; interface CropItem { title: string; url: string; icon: LucideIcon; } interface NavCropsProps { crops: CropItem[]; title?: string; } export function NavCrops({ crops, title = "Crops" }: NavCropsProps) { return ( {title} {crops.map((crop) => ( {crop.title} ))} ); }