'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');

// TODO: Обновить prettier до версии 2.2.0+
/* eslint-disable prettier/prettier */

var createApplyPaperMixin = function createApplyPaperMixin(tokens) {
  return function (_ref) {
    var backgroundColor = _ref.backgroundColor,
      shadow = _ref.shadow,
      borderRadius = _ref.borderRadius,
      styles = _ref.styles;
    return _rollupPluginBabelHelpers.objectSpread2({
      backgroundColor: backgroundColor ? tokens[backgroundColor] : undefined,
      boxShadow: shadow ? tokens[shadow] : undefined,
      borderRadius: borderRadius ? tokens[borderRadius] : undefined
    }, styles);
  };
};

exports.createApplyPaperMixin = createApplyPaperMixin;
