"use client"; import type { ReactElement, RefAttributes, ReactNode } from "react"; import { Children, cloneElement } from "react"; import classNames from "classnames/dedupe"; import "./Breadcrumbs.css"; export type BreadcrumbsElementType = HTMLElement; export interface BreadcrumbsProps extends RefAttributes { /** Custom class name for setting specific CSS */ className?: string; children?: ReactNode; "aria-label"?: string; } const Breadcrumbs = ({ ref, ...props }: BreadcrumbsProps) => { const { "aria-label": ariaLabel = "Breadcrumbs" } = props; const { navProps } = { navProps: { "aria-label": ariaLabel } }; const { children, ...otherProps } = props; const childArray = Children.toArray(children); // Reshape class name and apply to outer element const classes = classNames( "mobius", "mobius-breadcrumb", otherProps.className, ); return ( ); }; Breadcrumbs.displayName = "Breadcrumbs"; export { Breadcrumbs };