"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _styledComponents = require("styled-components");
var _react = require("react");
var _theme = require("../../theme");
var useColor = function useColor() {
  var theme = (0, _react.useContext)(_styledComponents.ThemeContext);
  var pickColor = function pickColor(color) {
    return (0, _theme.getColor)(color)({
      theme: theme
    });
  };
  return pickColor;
};
var _default = exports["default"] = useColor;