import { jsx as i } from "react/jsx-runtime";
import { Button as m } from "@mui/material";
import { useMemoizedFn as s } from "ahooks";
import { translate as u } from "@arcblock/ux/lib/Locale/util";
import { useLocaleContext as a } from "@arcblock/ux/lib/Locale/context";
import { translations as p } from "../../../libs/locales.js";
import { useUserFollowersContext as c } from "../../../../contexts/user-followers.js";
function j() {
  const { locale: t } = a(), o = s((n, f = {}) => u(p, n, t, "en", f)), { followed: r, followUser: l, unfollowUser: e } = c();
  return /* @__PURE__ */ i(m, { variant: "contained", onClick: () => r ? e() : l(), fullWidth: !0, children: o(r ? "profile.unfollow" : "profile.follow") });
}
export {
  j as default
};
