'use strict';

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

require('../../theme/index.js');
var genComponentStyleHook = require('../../theme/util/genComponentStyleHook.js');
var statistic = require('../../theme/util/statistic.js');

const genSharedAffixStyle = (token) => {
  const { componentCls } = token;
  return {
    [componentCls]: {
      position: "fixed",
      zIndex: token.zIndexPopup
    }
  };
};
var useStyle = genComponentStyleHook.default("Affix", (token) => {
  const affixToken = statistic.merge(token, {
    zIndexPopup: token.zIndexBase + 10
  });
  return [genSharedAffixStyle(affixToken)];
});

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