import React from 'react'; import { Intent, Button, Popover, Menu, MenuItem, MenuDivider, Position, } from '@blueprintjs/core'; import intl from 'react-intl-universal'; import clsx from 'classnames'; import { FormatDateCell, Money, Icon } from 'components'; import { safeCallback } from 'utils'; import { CLASSES } from '../../../../common/classes'; /** * Table actions menu. */ export function ActionsMenu({ row: { original: paymentReceive }, payload: { onEdit, onDelete, onViewDetails }, }) { return ( } text={intl.get('view_details')} onClick={safeCallback(onViewDetails, paymentReceive)} /> } text={intl.get('edit_payment_receive')} onClick={safeCallback(onEdit, paymentReceive)} /> } /> ); } /** * Amount accessor. */ export function AmountAccessor(row) { return ; } /** * Actions cell. */ export function ActionsCell(props) { return ( } position={Position.RIGHT_BOTTOM} >