import React, {PropTypes} from 'react' import OnClickOutside from 'react-onclickoutside' import CustomTimeIndicator from 'shared/components/CustomTimeIndicator' const LayoutCellMenu = OnClickOutside( ({ cell, onEdit, queries, onDelete, isEditable, dataExists, isDeleting, onDeleteClick, onCSVDownload, }) =>
{queries && queries.length && }
{isEditable &&
{dataExists &&
} {isDeleting ?
Confirm
:
}
}
) const {arrayOf, bool, func, shape} = PropTypes LayoutCellMenu.propTypes = { isDeleting: bool, onEdit: func, onDelete: func, onDeleteClick: func, cell: shape(), isEditable: bool, dataExists: bool, queries: arrayOf(shape()), } export default LayoutCellMenu