'use strict';

var clsx = require('clsx');
var React = require('react');
var jsxRuntime = require('react/jsx-runtime');
var control = require('../common/propsValues/control.js');

const ActionButton = /*#__PURE__*/React.forwardRef(({
  disabled = false,
  className = undefined,
  onClick,
  priority = control.Priority.PRIMARY,
  text,
  children,
  ...rest
}, reference) => /*#__PURE__*/jsxRuntime.jsx("button", {
  ref: reference,
  type: "button",
  className: clsx.clsx('np-action-btn', 'np-text-body-default-bold', priority === control.Priority.TERTIARY ? 'btn-priority-3' : priority === control.Priority.SECONDARY ? 'btn-priority-2' : 'btn-priority-1', className),
  disabled: disabled,
  onClick: onClick,
  ...rest,
  children: children || text
}));

module.exports = ActionButton;
//# sourceMappingURL=ActionButton.js.map
