"use strict";

require("core-js/modules/es.object.define-property.js");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PurePanel = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
var PurePanel = exports.PurePanel = function PurePanel(props) {
  var _props$prefixCls = props.prefixCls,
    staticPrefixCls = _props$prefixCls === void 0 ? 'fcr-notification-notice' : _props$prefixCls,
    icon = props.icon,
    iconStyle = props.iconStyle,
    title = props.title,
    message = props.message,
    actions = props.actions,
    oneline = props.oneline;
  var prefixCls = "".concat(staticPrefixCls, "-content");
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
    className: (0, _classnames["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, "".concat(staticPrefixCls, "-with-icon"), icon), "".concat(staticPrefixCls, "-with-oneline"), oneline)),
    children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "".concat(prefixCls, "__icon"),
      style: iconStyle,
      children: icon
    }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
      className: "".concat(prefixCls, "__text"),
      children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
        className: (0, _classnames["default"])("".concat(prefixCls, "__title"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "__title-with-message"), message)),
        children: title
      }), message && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
        className: "".concat(prefixCls, "__message"),
        children: message
      })]
    }), actions && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "".concat(prefixCls, "__actions"),
      children: actions
    })]
  });
};