"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.CustomSystemMessageText = void 0;
var _react = _interopRequireDefault(require("react"));
var _StyledComponents = require("../styled/StyledComponents");
var _native = _interopRequireDefault(require("styled-components/native"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const CustomSystemMessageText = exports.CustomSystemMessageText = _native.default.Text`
  margin: 0;
  color: ${props => props.primary || '#0052cd'};
  border-radius: 118px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  background-color: ${props => props.secondary || '#e7edf9'};
  height: 24px;
  white-space: nowrap;
`;
const SystemMessage = ({
  messageText,
  colors
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledComponents.CustomSystemMessage, {
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomSystemMessageText, {
      ...colors,
      children: messageText
    })
  });
};
var _default = exports.default = SystemMessage;
//# sourceMappingURL=SystemMessage.js.map