/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { MoreHorizontal, Bell, BellOff } from "lucide-react"; import { useTranslation } from "@plane/i18n"; import { getIconButtonStyling } from "@plane/propel/icon-button"; import { CheckCircleFilledIcon, CloseCircleFilledIcon, CopyLinkIcon, NewTabIcon } from "@plane/propel/icons"; import type { TContextMenuItem } from "@plane/ui"; import { ActionDropdown } from "@plane/ui"; type Props = { canOpenTargetWorkItem: boolean; canReviewClosedRequest: boolean; includeDecisionActions?: boolean; isSubscribed?: boolean; isSubscriptionLoading?: boolean; onAccept?: () => void; onCopy: () => void; onDecline?: () => void; onOpenTarget?: () => void; onToggleSubscription?: () => void; }; export const ExternalContourActionsMenu = (props: Props) => { const { canOpenTargetWorkItem, canReviewClosedRequest, includeDecisionActions = false, isSubscribed, isSubscriptionLoading = false, onAccept, onCopy, onDecline, onOpenTarget, onToggleSubscription, } = props; const { t } = useTranslation(); const items: TContextMenuItem[] = [ { key: "accept", action: () => onAccept?.(), shouldRender: includeDecisionActions && canReviewClosedRequest && !!onAccept, customContent: (