// tmp-babel/__shared__/web/SocialInput/SubmitActions/index.js
import React from "react";
import { IconButton } from "@baseapp-frontend/design-system/components/web/buttons";
import { SendMessageIcon as DefaultSendMessageIcon } from "@baseapp-frontend/design-system/components/web/icons";
import { jsx as _jsx } from "react/jsx-runtime";
function _typeof(o) {
  "@babel/helpers - typeof";
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
    return typeof o2;
  } : function(o2) {
    return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  }, _typeof(o);
}
function ownKeys(e, r) {
  var t = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    r && (o = o.filter(function(r2) {
      return Object.getOwnPropertyDescriptor(e, r2).enumerable;
    })), t.push.apply(t, o);
  }
  return t;
}
function _objectSpread(e) {
  for (var r = 1; r < arguments.length; r++) {
    var t = null != arguments[r] ? arguments[r] : {};
    r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
      _defineProperty(e, r2, t[r2]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
      Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
    });
  }
  return e;
}
function _defineProperty(e, r, t) {
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
}
function _toPropertyKey(t) {
  var i = _toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}
function _toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}
var SubmitActions = function SubmitActions2(_ref) {
  var formId = _ref.formId, _ref$disabled = _ref.disabled, disabled = _ref$disabled === void 0 ? false : _ref$disabled, _ref$ariaLabel = _ref.ariaLabel, ariaLabel = _ref$ariaLabel === void 0 ? "submit actions" : _ref$ariaLabel, _ref$SendMessageIcon = _ref.SendMessageIcon, SendMessageIcon = _ref$SendMessageIcon === void 0 ? DefaultSendMessageIcon : _ref$SendMessageIcon, _ref$SendMessageIconP = _ref.SendMessageIconProps, SendMessageIconProps = _ref$SendMessageIconP === void 0 ? {} : _ref$SendMessageIconP;
  return /* @__PURE__ */ _jsx(IconButton, {
    type: "submit",
    form: formId,
    disabled,
    "aria-label": ariaLabel,
    children: /* @__PURE__ */ _jsx(SendMessageIcon, _objectSpread({}, SendMessageIconProps))
  });
};
var SubmitActions_default = SubmitActions;

export {
  SubmitActions_default
};
//# sourceMappingURL=chunk-KWHEG3K6.mjs.map