import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react'; import { IconElement } from './dropdownItemUtils'; type DropdownItemActionVariant = 'default' | 'danger'; interface DropdownItemActionCommonProps { /** Visible label text. Must be a caller-supplied translated string. */ label: string; /** default (neutral) or danger (destructive) styling. */ variant?: DropdownItemActionVariant; /** Optional leading icon. Accepts only intrinsic `` or `` elements. */ startIcon?: IconElement; /** Optional secondary line below the label. Caller-supplied translated string. */ description?: string; disabled?: boolean; /** Link target (e.g. `_blank`). Only applies when `href` is provided. */ target?: string; /** Link relationship. Only applies when `href` is provided. */ rel?: string; } /** Button mode — activates an action. */ export type DropdownItemActionButtonProps = DropdownItemActionCommonProps & Omit, keyof DropdownItemActionCommonProps | 'children'> & { href?: never; }; /** Link mode — navigates to `href` on activation. Renders as ``. */ export type DropdownItemActionLinkProps = DropdownItemActionCommonProps & Omit, keyof DropdownItemActionCommonProps | 'children'> & { /** When provided, the item renders as an `` element instead of `