'use strict';

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

var vue = require('vue');
require('../../cssinjs/index.js');
var index = require('../../style/index.js');
var internal = require('../../theme/internal.js');
var useStyleRegister = require('../../cssinjs/hooks/useStyleRegister.js');

const useStyle = (iconPrefixCls) => {
  const [theme, token] = internal.useToken();
  return useStyleRegister.default(
    vue.computed(() => ({
      theme: theme.value,
      token: token.value,
      hashId: "",
      path: ["ant-design-icons", iconPrefixCls.value]
    })),
    () => [
      {
        [`.${iconPrefixCls.value}`]: {
          ...index.resetIcon(),
          [`.${iconPrefixCls.value} .${iconPrefixCls.value}-icon`]: {
            display: "block"
          }
        }
      }
    ]
  );
};

exports.default = useStyle;
//# sourceMappingURL=index.js.map
