'use strict';

var icons = require('@transferwise/icons');
var clsx = require('clsx');
var reactIntl = require('react-intl');
var DateTrigger_messages = require('../../../dateLookup/dateTrigger/DateTrigger.messages.js');
var jsxRuntime = require('react/jsx-runtime');

function SelectInputClearButton({
  className,
  onClick
}) {
  const intl = reactIntl.useIntl();
  return /*#__PURE__*/jsxRuntime.jsx("button", {
    type: "button",
    "aria-label": intl.formatMessage(DateTrigger_messages.default.ariaLabel),
    className: clsx.clsx(className, 'np-select-input-addon np-select-input-addon--interactive'),
    onClick: onClick,
    children: /*#__PURE__*/jsxRuntime.jsx(icons.Cross, {
      size: 16
    })
  });
}

exports.SelectInputClearButton = SelectInputClearButton;
//# sourceMappingURL=SelectInputClearButton.js.map
