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