import { FC } from 'react'; import { FaChevronRight, FaHome } from 'react-icons/fa'; import { LocalizeText } from '../../../../api'; import { useCatalog } from '../../../../hooks'; export const CatalogBreadcrumbView: FC<{}> = () => { const { activeNodes = [], activateNode } = useCatalog(); if(!activeNodes || activeNodes.length === 0) { return (
{ LocalizeText('catalog.title') }
); } return (
activateNode(activeNodes[0]) } /> { activeNodes.map((node, i) => ( activateNode(node) : undefined } > { node.localization } )) }
); };