import React from 'react'; import { Button, Popover, Menu, MenuItem, MenuDivider, Position, Intent, } from '@blueprintjs/core'; import { useIntl } from 'react-intl'; import { Icon, Money } from 'components'; import { safeCallback, firstLettersArgs } from 'utils'; /** * Actions menu. */ export function ActionsMenu({ row: { original }, payload: { onEdit, onDelete }, }) { const { formatMessage } = useIntl(); return ( } text={formatMessage({ id: 'view_details' })} /> } text={formatMessage({ id: 'edit_vendor' })} onClick={safeCallback(onEdit, original)} /> } text={formatMessage({ id: 'delete_vendor' })} intent={Intent.DANGER} onClick={safeCallback(onDelete, original)} /> ); } /** * Actions cell. */ export function ActionsCell(props) { return ( } position={Position.RIGHT_BOTTOM} >