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

{title}

{description && (

{description}

)}
); }, );