- {!haveGithubRequirements && isGithub && (
-
-
-
-
-
- )}
- {haveGithubRequirements && isGithub && (
-
-
-
-
-
- )}
- {!haveGitlabRequirements && isGitlab && (
-
-
-
-
-
- )}
- {isGithub && haveGithubRequirements && (
-
- )}
-
- {isGitlab && (
-
- )}
-
- {isBitbucket && (
-
- )}
+} from "lucide-react";
+import Link from "next/link";
+import { toast } from "sonner";
+import { AddBitbucketProvider } from "./bitbucket/add-bitbucket-provider";
+import { EditBitbucketProvider } from "./bitbucket/edit-bitbucket-provider";
+import { AddGiteaProvider } from "./gitea/add-gitea-provider";
+import { EditGiteaProvider } from "./gitea/edit-gitea-provider";
+import { AddGithubProvider } from "./github/add-github-provider";
+import { EditGithubProvider } from "./github/edit-github-provider";
+import { AddGitlabProvider } from "./gitlab/add-gitlab-provider";
+import { EditGitlabProvider } from "./gitlab/edit-gitlab-provider";
- {isGitea && (
-
- )}
-
-
{
- await mutateAsync({
- gitProviderId: gitProvider.gitProviderId,
- })
- .then(() => {
- toast.success("Git Provider deleted successfully");
- refetch();
- })
- .catch(() => {
- toast.error("Error deleting Git Provider");
- });
- }}
- >
-
-
-