"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const ui = require("@contember/ui");
const useInitIDPRedirect = require("./useInitIDPRedirect.cjs");
const IDPInitButton = ({ provider, onError }) => {
  const onInitIDP = useInitIDPRedirect.useInitIDPRedirect({ onError });
  return /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.Button, { onClick: () => onInitIDP(provider), children: [
    "Login using ",
    provider.name ?? provider.provider
  ] }, void 0, true, {
    fileName: "/__w/interface/interface/packages/admin/src/tenant/components/idp/IDPInitButton.tsx",
    lineNumber: 14,
    columnNumber: 3
  }, void 0);
};
exports.IDPInitButton = IDPInitButton;
//# sourceMappingURL=IDPInitButton.cjs.map
