import '../../../theme/index.mjs';
import genComponentStyleHook from '../../../theme/token/util/genComponentStyleHook.mjs';
import { merge } from '../../../theme/token/util/statistic.mjs';

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

export { useStyle as default };
//# sourceMappingURL=index.mjs.map
