import Link from "next/link"; import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; import { Draggable } from "@hello-pangea/dnd"; // types import { IIssue } from "types"; type Props = { issues: IIssue[] | null; quickActions: (issue: IIssue) => React.ReactNode; }; export const CalendarIssueBlocks: React.FC = observer((props) => { const { issues, quickActions } = props; const router = useRouter(); const { workspaceSlug } = router.query; return ( <> {issues?.map((issue, index) => ( {(provided, snapshot) => (
{issue?.tempId !== undefined && (
)}
{issue.project_detail.identifier}-{issue.sequence_id}
{issue.name}
{quickActions(issue)}
)} ))} ); });