import { AriaLabelProperty, CommonProps, Heading, LinkProps } from '../common';
import React, { FunctionComponent, ReactNode } from 'react';
type ActionProps = AriaLabelProperty & {
text: string;
onClick?: (event: React.MouseEvent) => void;
disabled?: boolean;
};
type ButtonActionProps = ActionProps;
type LinkActionProps = ActionProps & LinkProps;
export interface HeaderProps extends CommonProps {
/**
* Optional prop to define the action for the header. If the `href` property
* is provided, a `Link` will be rendered instead of a `Button`.
*/
action?: ButtonActionProps | LinkActionProps;
/**
* Option prop to specify DOM render element of the title
*
* - When `as="legend"`, the `Header` will render as a `