diff --git a/app/components/Breadcrumbs.tsx b/app/components/Breadcrumbs.tsx new file mode 100644 index 0000000000..13760b55d9 --- /dev/null +++ b/app/components/Breadcrumbs.tsx @@ -0,0 +1,47 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, you can obtain one at https://mozilla.org/MPL/2.0/. + * + * Copyright Oxide Computer Company + */ +import cn from 'classnames' +import { Link } from 'react-router-dom' + +import { PrevArrow12Icon } from '@oxide/design-system/icons/react' + +import { useCrumbs } from '~/hooks/use-crumbs' +import { Slash } from '~/ui/lib/Slash' +import { intersperse } from '~/util/array' + +export function Breadcrumbs() { + const crumbs = useCrumbs().filter((c) => !c.titleOnly) + const isTopLevel = crumbs.length <= 1 + return ( + + ) +} diff --git a/app/components/Sidebar.tsx b/app/components/Sidebar.tsx index 0cc380ca40..5061d3d942 100644 --- a/app/components/Sidebar.tsx +++ b/app/components/Sidebar.tsx @@ -77,7 +77,7 @@ Sidebar.Nav = ({ children, heading }: SidebarNav) => ( )} -