/**
 * Copyright (c) 2023-present Plane Software, Inc. and contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 * See the LICENSE file for details.
 */

import { observer } from "mobx-react";
// ui
import type { TContextMenuItem } from "@plane/ui";
import { ActionDropdown, ContextMenu } from "@plane/ui";

export interface Props {
  parentRef: React.RefObject<HTMLElement>;
  MENU_ITEMS: TContextMenuItem[];
}

export const WorkspaceDraftIssueQuickActions = observer(function WorkspaceDraftIssueQuickActions(props: Props) {
  const { parentRef, MENU_ITEMS } = props;

  return (
    <>
      <ContextMenu parentRef={parentRef} items={MENU_ITEMS} />
      <ActionDropdown items={MENU_ITEMS} placement="bottom-end" />
    </>
  );
});
