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