// @flow
import type { Element } from 'react';
import type { ContainerProps } from '../../../mixins/container';

export type ExpanderProps = {|
  ...ContainerProps,
  headingComponent: Element<*>,
  headingComponentOpen?: Element<*>,
  isOpen?: boolean,
  onToggle?: (isOpen: boolean) => void,
  buttonStyles?: ?{ [string]: string },
|};

export type ExpanderContextType = {|
  toggleExpander: () => void,
|};
