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

export type ExpanderHeaderProps = {|
  isOpen: boolean,
|};

export type ControllableExpanderProps = {|
  ...TestingProps,
  ...ContainerProps,
  HeadingComponent: ComponentType<ExpanderHeaderProps>,
  isOpen: boolean,
  onToggle: () => void,
  buttonStyles?: ?{ [string]: string },
|};
