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.project_detail.identifier}-{issue.sequence_id}
{issue.name}
{quickActions(issue)}
{/* handleIssues(issue.target_date ?? "", issue, "delete")} handleUpdate={async (data) => handleIssues(issue.target_date ?? "", data, "update")} /> */}
)}
))}
); });