"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 _theme = _interopRequireDefault(require("./theme.css"));

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

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

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

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

var AvatarOverlay = function AvatarOverlay(_ref) {
  var size = _ref.size,
      onClick = _ref.onClick;
  var classNames = (0, _classnames.default)(_theme.default['overlay-background'], size === 'medium' ? _theme.default['full-height'] : _theme.default['default-height']);
  return /*#__PURE__*/_react.default.createElement("div", {
    onClick: onClick,
    className: _theme.default['overlay']
  }, /*#__PURE__*/_react.default.createElement(_box.default, {
    className: classNames,
    display: "flex",
    justifyContent: "center"
  }, /*#__PURE__*/_react.default.createElement(_icon.default, {
    color: "neutral",
    tint: "lightest"
  }, /*#__PURE__*/_react.default.createElement(_uiIcons.IconEditSmallFilled, null))));
};

var _default = AvatarOverlay;
exports.default = _default;