import { SaveDockerProvider } from "@/components/dashboard/application/general/generic/save-docker-provider"; import { SaveGitProvider } from "@/components/dashboard/application/general/generic/save-git-provider"; import { SaveGithubProvider } from "@/components/dashboard/application/general/generic/save-github-provider"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { api } from "@/utils/api"; import { GitBranch, LockIcon } from "lucide-react"; import Link from "next/link"; import { useState } from "react"; type TabState = "github" | "docker" | "git"; interface Props { applicationId: string; } export const ShowProviderForm = ({ applicationId }: Props) => { const { data: haveGithubConfigured } = api.admin.haveGithubConfigured.useQuery(); const { data: application } = api.application.one.useQuery({ applicationId }); const [tab, setSab] = useState(application?.sourceType || "github"); return (
Provider

Select the source of your code

{ setSab(e as TabState); }} > Github Docker Git {haveGithubConfigured ? ( ) : (
To deploy using GitHub, you need to configure your account first. Please, go to{" "} Settings {" "} to do so.
)}
); };