import React from 'react';
import { FormattedMessage } from 'react-intl';
export const toAction = (action, invokeClientAction, message, id) => {
  return {
    id,
    text: /*#__PURE__*/React.createElement(FormattedMessage, message),
    invoke: () => invokeClientAction(action)
  };
};