"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const resolveStyles = require("../resolve-styles/resolve-styles.cjs");
function getThemeStyles({
  theme,
  themeName,
  props,
  stylesCtx,
  selector
}) {
  return themeName.map(
    (n) => {
      var _a;
      return resolveStyles.resolveStyles({
        theme,
        styles: (_a = theme.components[n]) == null ? void 0 : _a.styles,
        props,
        stylesCtx
      })[selector];
    }
  ).reduce((acc, val) => ({ ...acc, ...val }), {});
}
exports.getThemeStyles = getThemeStyles;
