// @flow
import type { SpaceProps } from '../../../mixins/spacing';
import type { ContainerProps } from '../../../mixins/container';
import type { TestingProps } from '../../../mixins/testing';

type CTAProps =
  | {|
      onClick: (event: SyntheticEvent<HTMLButtonElement>) => void,
      type?: 'submit' | 'button',
    |}
  | {|
      href: string,
      target?: string,
    |};

export type SecondaryButtonProps = {|
  ...SpaceProps,
  ...ContainerProps,
  ...CTAProps,
  ...TestingProps,
  disabled?: boolean,
|};
