The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import cx from "classnames";
import { Fragment } from "react";
import { Link } from "metabase/common/components/Link";
import CS from "metabase/css/core/index.css";
import { Box, Group, type GroupProps } from "metabase/ui";
import type { NodeLink } from "../../../types";
import S from "./GraphBreadcrumbs.module.css";
type GraphBreadcrumbsProps = GroupProps & {
links: NodeLink[];
};
export function GraphBreadcrumbs({ links, ...props }: GraphBreadcrumbsProps) {
return (
<Group c="text-secondary" gap="sm" wrap="nowrap" {...props}>
<Group fz="sm" gap="xxs">
{links.map((link, linkIndex) => (
<Fragment key={linkIndex}>
{linkIndex > 0 && <Box>/</Box>}
<Box
className={cx(S.link, CS.textWrap)}
component={Link}
to={link.url}
target="_blank"
lh="1rem"
>
{link.label}
</Box>
</Fragment>
))}
</Group>
</Group>
);
}