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-22 13:05:06 +00:00
|
|
|
import { DraftIssueQuickActions } from "@/components/issues";
|
2024-03-19 14:38:35 +00:00
|
|
|
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-22 13:05:06 +00:00
|
|
|
return <BaseListRoot QuickActions={DraftIssueQuickActions} storeType={EIssuesStoreType.DRAFT} />;
|
2023-11-27 08:45:33 +00:00
|
|
|
});
|