mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 07:09:34 +01:00
* refactor: remove barrel exports from some compoennt modules * refactor: remove barrel exports from issue components * refactor: remove barrel exports from page components * chore: update type improts * refactor: remove barrel exports from cycle components * refactor: remove barrel exports from dropdown components * refactor: remove barrel exports from ce components * refactor: remove barrel exports from some more components * refactor: remove barrel exports from profile and sidebar components * chore: update type imports * refactor: remove barrel exports from store hooks * chore: dynamically load sticky editor * fix: lint * chore: revert sticky dynamic import * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
33 lines
898 B
TypeScript
33 lines
898 B
TypeScript
"use client";
|
|
|
|
import { FC } from "react";
|
|
// plane imports
|
|
import { 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 const CommonProjectBreadcrumbs: FC<TCommonProjectBreadcrumbProps> = (props) => {
|
|
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}
|
|
/>
|
|
)}
|
|
</>
|
|
);
|
|
};
|