mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
20 lines
620 B
TypeScript
20 lines
620 B
TypeScript
import { FC } from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
import { useRouter } from "next/router";
|
|
// hooks
|
|
import { DraftIssueQuickActions } from "@/components/issues";
|
|
import { EIssuesStoreType } from "@/constants/issue";
|
|
// components
|
|
// types
|
|
// constants
|
|
import { BaseListRoot } from "../base-list-root";
|
|
|
|
export const DraftIssueListLayout: FC = observer(() => {
|
|
const router = useRouter();
|
|
const { workspaceSlug, projectId } = router.query;
|
|
|
|
if (!workspaceSlug || !projectId) return null;
|
|
|
|
return <BaseListRoot QuickActions={DraftIssueQuickActions} storeType={EIssuesStoreType.DRAFT} />;
|
|
});
|