plane/web/components/issues/issue-layouts/calendar/issue-block-root.tsx

24 lines
656 B
TypeScript
Raw Normal View History

import React from "react";
// components
import { TIssueMap } from "@plane/types";
2024-03-19 14:38:35 +00:00
import { CalendarIssueBlock } from "@/components/issues";
import { TRenderQuickActions } from "../list/list-view-types";
2024-03-19 14:38:35 +00:00
// types
type Props = {
issues: TIssueMap | undefined;
issueId: string;
quickActions: TRenderQuickActions;
isDragging?: boolean;
};
export const CalendarIssueBlockRoot: React.FC<Props> = (props) => {
const { issues, issueId, quickActions, isDragging } = props;
if (!issues?.[issueId]) return null;
const issue = issues?.[issueId];
return <CalendarIssueBlock isDragging={isDragging} issue={issue} quickActions={quickActions} />;
};