import React from 'react'; import { WindowType } from '../windows/Windows'; import { Menu, MenuItem } from '@material-ui/core'; export interface NewTabProps { windowType: WindowType, } export interface IProps { anchorEl: null | HTMLElement, onClose: () => void, onCreateTab: (q: NewTabProps) => void, } export default function AddTabMenu(props: IProps) { return New Tab { props.onClose(); props.onCreateTab({ windowType: WindowType.Query, }) }} >{WindowType.Query} { props.onClose(); props.onCreateTab({ windowType: WindowType.ManageTags, }) }} >Manage Tags }