import { ChevronRight, FileCode, X } from 'lucide-react' import Link from 'next/link' import { Button, cn, CodeBlock, CodeBlockLang, Collapsible_Shadcn_, CollapsibleContent_Shadcn_, CollapsibleTrigger_Shadcn_, WarningIcon, } from 'ui' import { ConnectionParameters } from './ConnectionParameters' import { DirectConnectionIcon, TransactionIcon } from './PoolerIcons' interface ConnectionPanelProps { type?: 'direct' | 'transaction' | 'session' title: string description: string connectionString: string ipv4Status: { type: 'error' | 'success' title: string description?: string link?: { text: string; url: string } } notice?: string[] parameters?: Array<{ key: string value: string description?: string }> contentType?: 'input' | 'code' lang?: CodeBlockLang fileTitle?: string onCopyCallback: () => void } const IPv4StatusIcon = ({ className, active }: { className?: string; active: boolean }) => { return (
{description}
{text}
))}A few major platforms are IPv4-only and may not work with a Direct Connection:
If you wish to use a Direct Connection with these, please purchase{' '} IPv4 support .
You may also use the{' '} Session Pooler or{' '} Transaction Pooler if you are on a IPv4 network.