/** * @flow * @file Open With dropdown menu * @author Box */ import * as React from 'react'; import DropdownMenu from '../../components/dropdown-menu/DropdownMenu'; import Menu from '../../components/menu/Menu'; import OpenWithDropdownMenuItem from './OpenWithDropdownMenuItem'; import MultipleIntegrationsOpenWithButton from './MultipleIntegrationsOpenWithButton'; import type { Alignment } from '../common/flowTypes'; import type { Integration } from '../../common/types/integrations'; type Props = { dropdownAlignment: Alignment, integrations: Array, onClick: Function, }; const RIGHT_ALIGNMENT = 'right'; const OpenWithDropdownMenu = ({ dropdownAlignment = RIGHT_ALIGNMENT, integrations, onClick }: Props) => ( {integrations.map(integration => ( ))} ); export default OpenWithDropdownMenu;