import { type ForwardRefRenderFunction, forwardRef, type ReactNode, } from 'react'; import { List, type ListProps } from '../../atoms'; import styles from './navbar.module.scss'; export type NavbarProps = Omit< ListProps, 'children' | 'hideMarker' | 'isHierarchical' | 'isInline' | 'isOrdered' > & { /** * The navbar items. * * The number of items should not exceed 3 because of the modal position on * small screens. */ children: ReactNode; }; const NavbarWithRef: ForwardRefRenderFunction = ( { children, className = '', ...props }, ref ) => { const wrapperClass = `${styles.wrapper} ${className}`; return ( {children} ); }; /** * Navbar component * * Render the website navbar. */ export const Navbar = forwardRef(NavbarWithRef);