/** @jsx h */ import { ComponentChildren, JSX } from 'preact'; import { Props } from '@divriots/create-figma-plugin-ui'; /** * Types */ export declare type DropdownMenuProps = { disabled?: boolean; position?: 'bottom-left' | 'bottom-right' | 'up-left' | 'up-right'; options: Array; }; export declare type DropdownMenuOption = DropdownMenuOptionEntry | DropdownMenuOptionSeparator; export declare type DropdownMenuOptionEntry = { children?: ComponentChildren; icon?: ComponentChildren; disabled?: boolean; label: string; id: string; action: (id: string) => void; }; export declare type DropdownMenuOptionSeparator = { separator: boolean; }; /** * Component */ export declare function DropdownMenu({ disabled, position, options, children, ...rest }: Props): JSX.Element;