mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
20 lines
606 B
TypeScript
20 lines
606 B
TypeScript
import { useParams } from "next/navigation";
|
|
// plane web components
|
|
import { WorkspaceActiveCyclesList, WorkspaceActiveCyclesUpgrade } from "@/plane-web/components/active-cycles";
|
|
import { WithFeatureFlagHOC } from "@/plane-web/components/feature-flags";
|
|
|
|
export const WorkspaceActiveCyclesRoot = () => {
|
|
// router
|
|
const { workspaceSlug } = useParams();
|
|
|
|
return (
|
|
<WithFeatureFlagHOC
|
|
workspaceSlug={workspaceSlug?.toString()}
|
|
flag="WORKSPACE_ACTIVE_CYCLES"
|
|
fallback={<WorkspaceActiveCyclesUpgrade />}
|
|
>
|
|
<WorkspaceActiveCyclesList />
|
|
</WithFeatureFlagHOC>
|
|
);
|
|
};
|