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