/**
 * @deprecated Please use `LabelSuffixButtonConfig` instead
 * Configuration for the label suffix button (deprecated).
 */
export type LabelSuffixButtonProps = {
	/**
	 * Icon name to display in the suffix button.
	 */
	icon: string;
	/**
	 * Tooltip text shown when hovering the button.
	 */
	tooltipText?: string;
	/**
	 * Interaction that will trigger the tooltip.
	 */
	trigger?: 'hover' | 'click';
};

/**
 * Configuration for the label suffix button.
 */
export type LabelSuffixButtonConfig = {
	/**
	 * Icon name to display in the suffix button.
	 */
	icon: string;
} & Partial<
	Pick<
		HTMLVegaTooltipElement,
		'trigger' | 'size' | 'minWidth' | 'maxWidth' | 'text' | 'placement' | 'alignment'
	>
>;
