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

22 lines
540 B
TypeScript

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