import { clsx } from 'clsx';
import { forwardRef } from 'react';
import { jsx } from 'react/jsx-runtime';
import { Priority } from '../common/propsValues/control.mjs';

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

export { ActionButton as default };
//# sourceMappingURL=ActionButton.mjs.map
