import Link from 'next/link' import classNames from 'classnames' import type { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react' import './style.scss' interface BreadcrumbItemProps extends LiHTMLAttributes{ maxWidth?: `${number}px` | `${number}em` icon?: ReactNode current?: boolean text: string href: string } interface BreadcrumbProps extends HTMLAttributes { itemsCanWrap?: boolean ariaLabel?: string children: ReactNode } function Root({ itemsCanWrap = true, ariaLabel = 'breadcrumbs', children, ...rest }: BreadcrumbProps) { return ( ) } function Item({ maxWidth, current, icon, text, href, ...rest }: BreadcrumbItemProps) { return (
  • {current ? (
    ) : ( )}
  • ) } function ItemContent({ icon, text, }: Pick) { return ( <> {icon &&
    {icon}
    } {text} ) } export { Root, Item } // @TODO: complete upon MenuPrimitive completion // it should look something like this: // function Truncation({ ariaLabel, ...rest }: {ariaLabel: string}) { // const {isOpen, onClickToggle} = useMenuPrimitive() // return ( //
  • // // // // // //
    //
      // {sublist items} //
    //
    //
    //
    //
  • // ) // }