2024-03-06 15:17:38 +00:00
|
|
|
import { FC } from "react";
|
2023-11-27 08:45:33 +00:00
|
|
|
import { observer } from "mobx-react-lite";
|
2024-03-06 13:09:14 +00:00
|
|
|
import { useRouter } from "next/router";
|
2023-11-27 08:45:33 +00:00
|
|
|
// hooks
|
2024-03-06 13:09:14 +00:00
|
|
|
import { ProjectIssueQuickActions } from "components/issues";
|
|
|
|
import { EIssuesStoreType } from "constants/issue";
|
2023-11-27 08:45:33 +00:00
|
|
|
// components
|
|
|
|
// types
|
|
|
|
// constants
|
|
|
|
import { BaseListRoot } from "../base-list-root";
|
|
|
|
|
|
|
|
export const DraftIssueListLayout: FC = observer(() => {
|
|
|
|
const router = useRouter();
|
2024-03-06 15:17:38 +00:00
|
|
|
const { workspaceSlug, projectId } = router.query;
|
2023-11-27 08:45:33 +00:00
|
|
|
|
|
|
|
if (!workspaceSlug || !projectId) return null;
|
|
|
|
|
2024-03-06 15:17:38 +00:00
|
|
|
return <BaseListRoot QuickActions={ProjectIssueQuickActions} storeType={EIssuesStoreType.DRAFT} />;
|
2023-11-27 08:45:33 +00:00
|
|
|
});
|