import { ActionListTrailingActionProps } from "./TrailingAction.js";
import { ElementType } from "react";

//#region src/ActionList/GroupHeadingTrailingAction.d.ts
/**
 * Props for `ActionList.GroupHeading.TrailingAction`.
 *
 * Mirrors the shape of `ActionList.TrailingAction` so the API is consistent
 * across `ActionList.Item` and `ActionList.GroupHeading`. The only
 * difference is that `icon` is required here — group headings are not
 * interactive on their own, so the action must always render as a square
 * IconButton with a uniform hit target.
 */
type ActionListGroupHeadingTrailingActionProps = Omit<ActionListTrailingActionProps, 'icon'> & {
  icon: ElementType;
};
//#endregion
export { ActionListGroupHeadingTrailingActionProps };