* 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 * fix: build errors * fix: build errors * fix: build errors * fix: build errors * fix: build errors * chore: update hook imports * fix: build errors * fix: build errors * fix: build errors * fix: build errors * fix: build errors * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * fix: build errors --------- Co-authored-by: Aaryan Khandelwal <[email protected]>
15 lines
548 B
TypeScript
15 lines
548 B
TypeScript
import { useParams } from "next/navigation";
|
|
import { IssuesHeader as CeIssueHeader } from "@/ce/components/issues/header";
|
|
import { WithFeatureFlagHOC } from "../feature-flags";
|
|
import { AdvancedIssuesHeader } from "./advanced-header";
|
|
|
|
export const IssuesHeader = () => {
|
|
const { workspaceSlug } = useParams();
|
|
return (
|
|
// Add CE component for fallback
|
|
<WithFeatureFlagHOC workspaceSlug={workspaceSlug?.toString()} flag="PROJECT_OVERVIEW" fallback={<CeIssueHeader />}>
|
|
<AdvancedIssuesHeader />
|
|
</WithFeatureFlagHOC>
|
|
);
|
|
};
|