mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
32 lines
1009 B
TypeScript
32 lines
1009 B
TypeScript
import { ReactElement } from "react";
|
|
import { observer } from "mobx-react";
|
|
// components
|
|
import { PageHead } from "@/components/core";
|
|
import { WorkspaceActiveCycleHeader } from "@/components/headers";
|
|
import { WorkspaceActiveCyclesUpgrade } from "@/components/workspace";
|
|
// layouts
|
|
import { useWorkspace } from "@/hooks/store";
|
|
import { AppLayout } from "@/layouts/app-layout";
|
|
// types
|
|
import { NextPageWithLayout } from "@/lib/types";
|
|
// hooks
|
|
|
|
const WorkspaceActiveCyclesPage: NextPageWithLayout = observer(() => {
|
|
const { currentWorkspace } = useWorkspace();
|
|
// derived values
|
|
const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Active Cycles` : undefined;
|
|
|
|
return (
|
|
<>
|
|
<PageHead title={pageTitle} />
|
|
<WorkspaceActiveCyclesUpgrade />
|
|
</>
|
|
);
|
|
});
|
|
|
|
WorkspaceActiveCyclesPage.getLayout = function getLayout(page: ReactElement) {
|
|
return <AppLayout header={<WorkspaceActiveCycleHeader />}>{page}</AppLayout>;
|
|
};
|
|
|
|
export default WorkspaceActiveCyclesPage;
|