import { ComponentType, forwardRef } from "react"; import { motion, HTMLMotionProps } from "framer-motion"; import { LucideProps } from "lucide-react"; import { cn } from "@/lib/cn"; type Props = HTMLMotionProps<"button"> & { icon: ComponentType; title: string; description?: string; active?: boolean; iconSize?: number; iconBackground?: boolean; }; export const NavItem = forwardRef( function NavItem( { icon: Icon, title, description, active = false, iconSize = 15, iconBackground = true, className, type = "button", ...props }, ref, ) { return ( {iconBackground ? (
) : ( )}

{title}

{description && (

{description}

)}
); }, );