diff --git a/src/shared/NavItem.tsx b/src/shared/NavItem.tsx new file mode 100644 index 0000000..7b586b0 --- /dev/null +++ b/src/shared/NavItem.tsx @@ -0,0 +1,42 @@ +"use client"; + +import React, { FC, ReactNode } from "react"; +import twFocusClass from "@/utils/twFocusClass"; + +export interface NavItemProps { + className?: string; + radius?: string; + onClick?: () => void; + isActive?: boolean; + renderX?: ReactNode; + children?: ReactNode; +} + +const NavItem: FC = ({ + className = "px-5 py-2.5 text-sm sm:text-base sm:px-6 sm:py-3 capitalize", + radius = "rounded-full", + children, + onClick = () => {}, + isActive = false, + renderX, +}) => { + return ( +
  • + {renderX && renderX} + +
  • + ); +}; + +export default NavItem;