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