import React from 'react' /* * The actual Breadcrumbs component * * @param {object} props - All the React props * @param {array} props.crumbs - The crumbs, an array with objects with href, label keys * @param {function} Link - An optional custom component to use to render the Link * @param {text} title - The title of the current page */ export const Breadcrumbs = ({ crumbs = [], title, Link = false }) => { if (Link === false) Link = RegularLink return (
) } /* * People can pass in a custom Link component, * which is useful when using one from your framework. * If not, we use a regular a tag */ const RegularLink = ({ href, children }) => {children} /* * This goes between breadcrumbs */ const Spacer = () =>
  • »