"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

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

var _classnames = _interopRequireDefault(require("classnames"));

var _theme = _interopRequireDefault(require("./theme.css"));

var _box = _interopRequireDefault(require("../box"));

var _icon = _interopRequireDefault(require("../icon"));

var _uiIcons = require("@teamleader/ui-icons");

var AvatarAdd = function AvatarAdd(_ref) {
  var children = _ref.children,
      size = _ref.size;
  return /*#__PURE__*/_react.default.createElement(_box.default, {
    alignItems: "center",
    backgroundColor: "neutral",
    backgroundTint: "normal",
    className: (0, _classnames.default)(_theme.default['avatar'], _theme.default['avatar-add']),
    "data-teamleader-ui": "avatar-add",
    display: "flex",
    justifyContent: "center"
  }, /*#__PURE__*/_react.default.createElement(_icon.default, {
    color: "neutral",
    tint: "darkest"
  }, size === 'tiny' || size === 'small' ? /*#__PURE__*/_react.default.createElement(_uiIcons.IconUserAddSmallOutline, null) : /*#__PURE__*/_react.default.createElement(_uiIcons.IconUserAddMediumOutline, null)), children && /*#__PURE__*/_react.default.createElement("div", {
    className: _theme.default['children']
  }, children));
};

var _default = AvatarAdd;
exports.default = _default;