"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const ui = require("@contember/ui");
const useInitIDPRedirect = require("./useInitIDPRedirect.cjs");
const IDPInitButton = ({ provider, onError }) => {
  const onInitIDP = useInitIDPRedirect.useInitIDPRedirect({ onError });
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { onClick: () => onInitIDP(provider), children: [
    "Login using ",
    provider.name ?? provider.provider
  ] });
};
exports.IDPInitButton = IDPInitButton;
//# sourceMappingURL=IDPInitButton.cjs.map
