"use client"; // mobx react lite import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; // components import { IssueBlockPriority } from "components/issues/board-views/block-priority"; import { IssueBlockState } from "components/issues/board-views/block-state"; import { IssueBlockDueDate } from "components/issues/board-views/block-due-date"; // interfaces import { IIssue } from "types/issue"; import { RootStore } from "store/root"; import { useRouter } from "next/router"; export const IssueListBlock = observer(({ issue }: { issue: IIssue }) => { const { project: projectStore, issueDetails: issueDetailStore }: RootStore = useMobxStore(); // router const router = useRouter(); const { workspace_slug, project_slug, board } = router.query; const handleBlockClick = () => { issueDetailStore.setPeekId(issue.id); router.push( { pathname: `/${workspace_slug?.toString()}/${project_slug}`, query: { board: board?.toString(), peekId: issue.id, }, }, undefined, { shallow: true } ); }; return (