* chore: gitignore updated * chore: check icon added to propel package * feat: search icon migration * chore: check icon migration * chore: plus icon added to propel package * chore: code refactor * chore: plus icon migration and code refactor * chore: trash icon added to propel package * chore: code refactor * chore: trash icon migration * chore: edit icon added to propel package * chore: new tab icon added to propel package * chore: edit icon migration * chore: newtab icon migration * chore: lock icon added to propel package * chore: lock icon migration * chore: globe icon added to propel package * chore: globe icon migration * chore: copy icon added to propel package * chore: copy icon migration * chore: link icon added to propel package * chore: link icon migration * chore: link icon migration * chore: info icon added to propel package * chore: code refactor * chore: code refactor * chore: code refactor * chore: code refactor
22 lines
594 B
TypeScript
22 lines
594 B
TypeScript
import type { ISvgIcons } from "@plane/propel/icons";
|
|
import type { TContextMenuItem } from "@plane/ui";
|
|
|
|
export interface CopyMenuHelperProps {
|
|
baseItem: {
|
|
key: string;
|
|
title: string;
|
|
icon: React.FC<ISvgIcons>;
|
|
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;
|
|
};
|