* [WEB-5473] fix: source map errors * [WEB-5473] chore: run codemod * fix: build errors in editor --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
30 lines
885 B
TypeScript
30 lines
885 B
TypeScript
import type { FC } from "react";
|
|
// plane imports
|
|
import type { EProjectFeatureKey } from "@plane/constants";
|
|
// local components
|
|
import { ProjectBreadcrumb } from "./project";
|
|
import { ProjectFeatureBreadcrumb } from "./project-feature";
|
|
|
|
type TCommonProjectBreadcrumbProps = {
|
|
workspaceSlug: string;
|
|
projectId: string;
|
|
featureKey?: EProjectFeatureKey;
|
|
isLast?: boolean;
|
|
};
|
|
|
|
export function CommonProjectBreadcrumbs(props: TCommonProjectBreadcrumbProps) {
|
|
const { workspaceSlug, projectId, featureKey, isLast = false } = props;
|
|
return (
|
|
<>
|
|
<ProjectBreadcrumb workspaceSlug={workspaceSlug} projectId={projectId} />
|
|
{featureKey && (
|
|
<ProjectFeatureBreadcrumb
|
|
workspaceSlug={workspaceSlug?.toString()}
|
|
projectId={projectId?.toString()}
|
|
featureKey={featureKey}
|
|
isLast={isLast}
|
|
/>
|
|
)}
|
|
</>
|
|
);
|
|
}
|