import { jsx as n } from "react/jsx-runtime";
import f from "lodash/noop";
import { useCreation as p } from "ahooks";
import u from "./components/logged-in.js";
import l from "./components/un-login.js";
function b({
  session: r,
  onBindWallet: e = f,
  locale: o = "en",
  size: t = 24,
  popperType: i = "click"
}) {
  const m = p(() => !!globalThis?.blocklet, []);
  return r.user ? /* @__PURE__ */ n(
    u,
    {
      isBlocklet: m,
      session: r,
      onBindWallet: e,
      locale: o,
      size: t,
      popperType: i
    }
  ) : /* @__PURE__ */ n(l, { session: r, locale: o, size: t });
}
export {
  b as default
};
