plane/web/components/issues/issue-layouts/spreadsheet/roots/module-root.tsx
2024-03-19 20:08:35 +05:30

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}
/>
);
});