import React, { useMemo } from 'react'; import { Menu, Popover, Button, Position, MenuItem, Intent, } from '@blueprintjs/core'; import intl from 'react-intl-universal'; import { Icon } from 'components'; import { safeCallback } from 'utils'; /** * Row actions menu list. */ export function ActionMenuList({ row: { original }, payload: { onEditCurrency, onDeleteCurrency }, }) { return ( } text={intl.get('edit_currency')} onClick={safeCallback(onEditCurrency, original)} /> } text={intl.get('delete_currency')} onClick={safeCallback(onDeleteCurrency, original)} intent={Intent.DANGER} /> ); } /** * Actions cell. */ export const ActionsCell = (props) => { return ( } >