// hooks import useIntegrationPopup from "hooks/use-integration-popup"; // ui import { Button } from "@plane/ui"; // types import { IWorkspaceIntegration } from "types"; import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; type Props = { workspaceIntegration: false | IWorkspaceIntegration | undefined; provider: string | undefined; }; export const GithubAuth: React.FC = observer(({ workspaceIntegration, provider }) => { const { appConfig: { envConfig }, } = useMobxStore(); // hooks const { startAuth, isConnecting } = useIntegrationPopup({ provider, github_app_name: envConfig?.github_app_name || "", slack_client_id: envConfig?.slack_client_id || "", }); return (
{workspaceIntegration && workspaceIntegration?.id ? ( ) : ( )}
); });