"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CustomAction = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _action = _interopRequireDefault(require("../view/FlexibleCard/components/actions/action"));
var _utils = require("../view/FlexibleCard/components/actions/utils");
/**
 * Public API — exported externally. Do not add props without external support intent.
 */

var CustomAction = exports.CustomAction = function CustomAction(props) {
  return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({}, (0, _utils.toActionProps)(props), {
    content: props.children,
    onClick: props.onClick
  }));
};