// @flow
import type { Element as ReactElement } from 'react';
import { MenuItem } from '../menu-item';
import { type SpaceProps } from '../../../../mixins/spacing';

export type MenuItemListProps = {|
  ...SpaceProps,
  children: ReactElement<typeof MenuItem> | ReactElement<typeof MenuItem>[],
  onToggle: () => void,
  flatTopCorners: boolean,
  direction: 'left' | 'right',
  targetElement?: ?Element,
|};
