You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
340 B

import React from 'react';
interface NavItemProps {
icon: JSX.Element;
text: string;
}
export const NavItem = ({ icon, text }: NavItemProps) => {
return (
<div className="flex h-12 items-center hover:bg-gray-100 rounded-md cursor-pointer px-3 select-none">
{icon}
<span className="">{text}</span>
</div>
);
};