'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var Alert = require('../alert/Alert.js');
var clsx = require('clsx');
var jsxRuntime = require('react/jsx-runtime');

function CriticalCommsBanner({
  title,
  subtitle,
  action,
  className
}) {
  return /*#__PURE__*/jsxRuntime.jsx("div", {
    className: clsx.clsx('critical-comms', className),
    children: /*#__PURE__*/jsxRuntime.jsx(Alert.default, {
      title: title,
      message: subtitle,
      action: {
        onClick: action?.onClick,
        target: action?.href,
        text: action?.label
      },
      className: className,
      type: "warning"
    })
  });
}

exports.default = CriticalCommsBanner;
//# sourceMappingURL=CriticalCommsBanner.js.map
