import { AlertCircle } from "lucide-react"; import { TIssueOrderByOptions } from "@plane/types"; import { ISSUE_ORDER_BY_OPTIONS } from "@/constants/issue"; import { cn } from "@/helpers/common.helper"; type Props = { dragColumnOrientation: "justify-start" | "justify-center" | "justify-end"; canOverlayBeVisible: boolean; isDropDisabled: boolean; dropErrorMessage?: string; orderBy: TIssueOrderByOptions | undefined; isDraggingOverColumn: boolean; }; export const GroupDragOverlay = (props: Props) => { const { dragColumnOrientation, canOverlayBeVisible, isDropDisabled, dropErrorMessage, orderBy, isDraggingOverColumn, } = props; const shouldOverlayBeVisible = isDraggingOverColumn && canOverlayBeVisible; const readableOrderBy = ISSUE_ORDER_BY_OPTIONS.find((orderByObj) => orderByObj.key === orderBy)?.title; return (
{dropErrorMessage ? (
  {dropErrorMessage}
) : ( <> {readableOrderBy && ( The layout is ordered by {readableOrderBy}. )} Drop here to move the issue. )}
); };