import { ExternalLink } from 'lucide-react' import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' import { WarningIcon } from 'ui' export const IPv4DeprecationNotice = () => { return ( Direct database access is only available via IPv6-compatible networks.

We strongly recommend using connection pooling to connect to your database because it's compatible with both IPv4 and IPv6 networks. You'll only need to change the connection credentials that you're using in your application to the pooler's connection credentials.

) } export const IPv4AddonDirectConnectionNotice = () => { return ( Direct database connections are recommended if you're connecting with session mode.

If you are not connecting to the database from serverless environments, we strongly recommend you connect to the database directly instead of using connection pooling for lower latency.

Since your project has the IPv4 add on, you are not required to use the connection pooler even if your network only supports IPv4.

) } export const DefaultSessionModeNotice = () => { return ( You are not yet in Transaction mode.

You need to set your Pool Mode to{' '} Transaction in the{' '} Connection pooling configuration section below in order to use transaction mode on port 6543.

Otherwise, port 6543 will continue to connect in{' '} Session mode.

) }