// @flow

import React, {Component} from 'react'

export type Props = {
  type: 'Username' | 'General',
  options: Array<string>,
  onClick: (option: string, index: number) => void,
  onPress?: void,
  onOther?: () => void,
  value?: ?string,
  style?: Object
}

declare export default class Dropdown extends Component<void, Props, void> { }

export type MenuItemProps = {
  value?: any, // The value of the menu item.
  type?: 'Normal' | 'Username' | 'Other' | 'Pick',
  onClick: () => void,
  onPress?: void,
  style?: Object,
  textStyle?: Object,
  children?: any
}

export class MenuItem extends Component<void, MenuItemProps, void> { }
