import { jsxDEV } from "react/jsx-dev-runtime";
import { Button } from "@contember/ui";
import { useInitIDPRedirect } from "./useInitIDPRedirect.js";
const IDPInitButton = ({ provider, onError }) => {
  const onInitIDP = useInitIDPRedirect({ onError });
  return /* @__PURE__ */ jsxDEV(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);
};
export {
  IDPInitButton
};
//# sourceMappingURL=IDPInitButton.js.map
