bb-plane-fork/web/ce/components/issues/issue-layouts/quick-action-dropdowns/copy-menu-helper.tsx
Vamsi Krishna 6be3f0ea73
[WEB-4208]chore: refactored work item quick actions (#7136)
* chore: refactored work item quick actions

* chore: update event handling for menu

* chore: reverted unwanted changes

* fix: update archive copy link

* chore: handled undefined function implementation
2025-06-06 13:21:00 +05:30

22 lines
584 B
TypeScript

import { Copy } from "lucide-react";
import { TContextMenuItem } from "@plane/ui";
export interface CopyMenuHelperProps {
baseItem: {
key: string;
title: string;
icon: typeof Copy;
action: () => void;
shouldRender: boolean;
};
activeLayout: string;
setTrackElement: (element: string) => void;
setCreateUpdateIssueModal: (open: boolean) => void;
setDuplicateWorkItemModal?: (open: boolean) => void;
}
export const createCopyMenuWithDuplication = (props: CopyMenuHelperProps): TContextMenuItem => {
const { baseItem } = props;
return baseItem;
};