You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/web/src/routes/Main/Navbar/NavItem.tsx

20 lines
498 B
TypeScript

import type { ClassValue } from 'clsx';
import clsx from 'clsx';
import React from 'react';
export const NavbarNavItem: React.FC<{
className?: ClassValue;
}> = React.memo((props) => {
return (
<div
className={clsx(
'w-12 h-12 hover:rounded-lg bg-gray-300 transition-all rounded-1/2 cursor-pointer flex items-center justify-center overflow-hidden',
props.className
)}
>
{props.children}
</div>
);
});
NavbarNavItem.displayName = 'NavbarNavItem';