import * as React from "react"; import { ActionButtonProps } from "../ActionButton"; import { MenuProps } from "../Menu"; import { ContentProp } from "../MenuList/MenuList"; import { Placement } from "@floating-ui/react"; import { AutoPlacement } from "../../hooks/usePlacement"; /** * @deprecated このコンポーネントは非推奨です。代わりに `ContextMenu2` を使用してください。 */ export type ContextMenuProps = { /** * `type ContentProp = React.ComponentPropsWithoutRef<"div"> & { * text: string; * onClick: () => void; * divideTop?: boolean; * disabled?: boolean; * }` */ contents: ContentProp[]; /** * Define priority of position. Please check [this](https://floating-ui.com/docs/tutorial#placements). * For backward compatibility, `"auto" | "auto-start" | "auto-end"` are included in addition to the above positions. */ positionPriority?: (Placement | AutoPlacement)[]; menuMaxHeight?: MenuProps["maxHeight"]; /** * props of [Menu](/?path=/docs/components-navigation-menu) */ menuProps?: Partial; /** * props of [ActionButton](/?path=/docs/components-inputs-actionbutton) */ actionButtonProps?: Partial; }; /** * @deprecated このコンポーネントは非推奨です。代わりに `ContextMenu2` を使用してください。 */ declare const ContextMenu: React.ForwardRefExoticComponent>; export default ContextMenu;