import Link from 'next/link' import SidePanelGitHubRepoLinker from 'components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker' import SidePanelVercelProjectLinker from 'components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker' import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold' import { useProjectByRef, useSelectedProject } from 'hooks/misc/useSelectedProject' import { BASE_PATH } from 'lib/constants' import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, WarningIcon } from 'ui' import GitHubSection from './GithubIntegration/GithubSection' import VercelSection from './VercelIntegration/VercelSection' export const IntegrationImageHandler = ({ title }: { title: 'vercel' | 'github' }) => { return ( {`${title} ) } const IntegrationSettings = () => { const project = useSelectedProject() const parentProject = useProjectByRef(project?.parent_project_ref) const isBranch = project?.parent_project_ref !== undefined return ( <> {isBranch && ( You are currently on a preview branch of your project To adjust your project's integration settings, you may return to your{' '} main branch . )} ) } export default IntegrationSettings