"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _themes = require("../config/themes");

var _styledComponents = require("styled-components");

var _templateObject;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

function ChatTheme(theme, size) {
  var style = theme && _themes.themes[theme] ? _themes.themes[theme] : _themes.themes.blue;
  var winsize = size && _themes.windowSize[size] ? _themes.windowSize[size] : _themes.windowSize.medium;
  var GlobalStyles = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\thtml {\n\t\t\t", "\n\t\t\t", "\n\t\t}\n\t\t"])), style, winsize);
  return /*#__PURE__*/_react["default"].createElement(GlobalStyles, null);
}

var _default = ChatTheme;
exports["default"] = _default;