import Link from 'next/link' import ActivityStats from 'components/interfaces/HomeNew/ActivityStats' import { ReactFlowProvider } from 'reactflow' import { useState } from 'react' import { SchemaGraph } from 'components/interfaces/Database/Schemas/SchemaGraph' import { ProjectPausedState } from 'components/layouts/ProjectLayout/PausedState/ProjectPausedState' import { ComputeBadgeWrapper } from 'components/ui/ComputeBadgeWrapper' import { InlineLink } from 'components/ui/InlineLink' import { ProjectUpgradeFailedBanner } from 'components/ui/ProjectUpgradeFailedBanner' import { cn, Badge, Tooltip, TooltipContent, TooltipTrigger } from 'ui' import InstanceConfiguration from '../Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration' interface TopSectionProps { projectName: string isMainBranch?: boolean parentProject?: { ref?: string; name?: string } | null isOrioleDb?: boolean project: any organization: any projectRef?: string isPaused: boolean } const TopSection = ({ projectName, isMainBranch, parentProject, isOrioleDb, project, organization, isPaused, }: TopSectionProps) => { return (
{!isMainBranch && ( {parentProject?.name} )}

{projectName}

{isOrioleDb && ( OrioleDB This project is using Postgres with OrioleDB which is currently in preview and not suitable for production workloads. View our{' '} documentation {' '} for all limitations. )}
{isPaused && }
) } export default TopSection