// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import Icon from 'antd/lib/icon'; import Menu from 'antd/lib/menu'; import Button from 'antd/lib/button'; import Modal from 'antd/lib/modal'; import Tooltip from 'antd/lib/tooltip'; import { BackgroundIcon, ForegroundIcon, ResetPerspectiveIcon } from 'icons'; import { ObjectType, ShapeType } from 'reducers/interfaces'; interface Props { serverID: number | undefined; locked: boolean; shapeType: ShapeType; objectType: ObjectType; copyShortcut: string; pasteShortcut: string; propagateShortcut: string; toBackgroundShortcut: string; toForegroundShortcut: string; removeShortcut: string; copy: (() => void); remove: (() => void); propagate: (() => void); createURL: (() => void); switchOrientation: (() => void); toBackground: (() => void); toForeground: (() => void); resetCuboidPerspective: (() => void); } export default function ItemMenu(props: Props): JSX.Element { const { serverID, locked, shapeType, objectType, copyShortcut, pasteShortcut, propagateShortcut, toBackgroundShortcut, toForegroundShortcut, removeShortcut, copy, remove, propagate, createURL, switchOrientation, toBackground, toForeground, resetCuboidPerspective, } = props; return (
); }