'use client' import { forwardRef } from 'react' import * as React from 'react' import classNames from 'classnames' import { Icon } from '~/src/components/Icon' import { Text } from '~/src/components/Text' import type { NavItemProps } from './NavItem.types' import styles from './NavItem.module.scss' /** * @deprecated */ const NAV_ITEM_TEST_ID = 'bezier-nav-item' /** * @deprecated */ const NAV_ITEM_LEFT_ICON_TEST_ID = 'bezier-nav-item-left-icon' /** * `NavItem` is a component for an item where you can navigate to another link. * @example * ```tsx * * ``` */ export const NavItem = forwardRef( function NavItem( { name, style, className, content, href, target = '_self', rightContent, leftContent, active, onClick, ...rest }, forwardedRef ) { const handleClickItem = (e?: React.MouseEvent) => { onClick?.(e, name) } return (
  • {leftContent && ( )}
    {content} {rightContent && (
    {rightContent}
    )}
  • ) } )