import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; // hooks import { useIssues } from "hooks/store"; // components import { ProjectIssueQuickActions } from "components/issues"; import { BaseCalendarRoot } from "../base-calendar-root"; // types import { TIssue } from "@plane/types"; import { EIssueActions } from "../../types"; // constants import { EIssuesStoreType } from "constants/issue"; export interface IViewCalendarLayout { issueActions: { [EIssueActions.DELETE]: (issue: TIssue) => Promise; [EIssueActions.UPDATE]?: (issue: TIssue) => Promise; [EIssueActions.REMOVE]?: (issue: TIssue) => Promise; [EIssueActions.ARCHIVE]?: (issue: TIssue) => Promise; }; } export const ProjectViewCalendarLayout: React.FC = observer((props) => { const { issueActions } = props; // store const { issues, issuesFilter } = useIssues(EIssuesStoreType.PROJECT_VIEW); // router const router = useRouter(); const { viewId } = router.query; return ( ); });