import React from 'react' import { Flex, Text } from 'theme-ui' import Link from 'gatsby-link' export interface BreadcrumbItem { name: string href: string } export interface BreadcrumbProps { breadcrumb: BreadcrumbItem[] type: 'PRODUCT' | 'SEARCH' } const homeSvgProps = { width: '24', height: '24', viewBox: '0 0 24 24', } const caretSvgProps = { width: '24', height: '24', viewBox: '0 0 180 180', } export const Breadcrumb: React.FC = ({ breadcrumb, type }) => { return ( {breadcrumb.map(({ name, href }, i) => ( {/** We only want to apply a different style to the last item on Search pages */} {name} ))} ) }