'use strict';

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

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

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.cjs.map
