mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
24 lines
670 B
TypeScript
24 lines
670 B
TypeScript
import React from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
import { useRouter } from "next/router";
|
|
// mobx store
|
|
import { EIssuesStoreType } from "@/constants/issue";
|
|
// components
|
|
import { ModuleIssueQuickActions } from "../../quick-action-dropdowns";
|
|
import { BaseSpreadsheetRoot } from "../base-spreadsheet-root";
|
|
|
|
export const ModuleSpreadsheetLayout: React.FC = observer(() => {
|
|
const router = useRouter();
|
|
const { moduleId } = router.query;
|
|
|
|
if (!moduleId) return null;
|
|
|
|
return (
|
|
<BaseSpreadsheetRoot
|
|
viewId={moduleId.toString()}
|
|
QuickActions={ModuleIssueQuickActions}
|
|
storeType={EIssuesStoreType.MODULE}
|
|
/>
|
|
);
|
|
});
|