import classNames from 'classnames'; import React from 'react'; import { ControlLink, ControlLinkProps } from '../../ControlLink'; import './Breadcrumb.scss'; export type BreadcrumbProps = ControlLinkProps & { position?: number; to?: string; href?: string; }; export const Breadcrumb: React.FC = ({ children, position, className, ...rest }) => (
  • {rest.to || rest.href ? ( {children} ) : ( {children} )} {position != null && }
  • );