mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
23 lines
655 B
TypeScript
23 lines
655 B
TypeScript
|
import React from "react";
|
||
|
// components
|
||
|
import { CalendarIssueBlock } from "components/issues";
|
||
|
// types
|
||
|
import { TIssue, TIssueMap } from "@plane/types";
|
||
|
|
||
|
type Props = {
|
||
|
issues: TIssueMap | undefined;
|
||
|
issueId: string;
|
||
|
quickActions: (issue: TIssue, customActionButton?: React.ReactElement) => React.ReactNode;
|
||
|
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} />;
|
||
|
};
|