import { Link } from '@tanstack/react-router'
import {
ArrowUpRightIcon,
ChevronRightIcon,
DatabaseBackupIcon,
FileCheckIcon,
GitBranchIcon,
HeartPulseIcon,
KeyRoundIcon,
LifeBuoyIcon,
NetworkIcon,
PowerIcon,
ScrollTextIcon,
UsersIcon,
type LucideIcon,
} from 'lucide-react'
import { type ReactNode } from 'react'
import { DOCS_URL } from '@/lib/constants'
const benefitLinkClassName =
'flex shrink-0 items-center gap-1 text-sm text-foreground-light transition-colors hover:text-foreground'
const BenefitLabel = ({ children }: { children: ReactNode }) => (
<>
{children}
>
)
/** Two column grid with hairline dividers; an odd item count is padded so the last row stays boxed. */
const BenefitGrid = ({ children, count }: { children: ReactNode; count: number }) => (
{children}
{count % 2 === 1 && }
)
interface BenefitProps {
icon: LucideIcon
title: string
/** Muted text shown beside the title, e.g. a retention period. */
detail?: string
/** A `BenefitLink` shown at the end of the row. */
action?: ReactNode
}
const Benefit = ({ icon: Icon, title, detail, action }: BenefitProps) => (
{title}
{detail && {detail}}
{action}
)
const BackupsBenefit = ({ ref, days = 7 }: { ref: string; days?: number }) => {
return (
View
}
/>
)
}
const BranchingBenefit = ({ ref }: { ref: string }) => {
return (
Open
}
/>
)
}
const NoPausingBenefit = () =>
const PoolerBenefit = ({ ref }: { ref: string }) => (
Connect
}
/>
)
export const ProPlanBenefits = ({ ref }: { ref: string }) => {
return (
)
}
export const TeamPlanBenefits = ({
ref,
slug,
isTeamFromFree,
}: {
ref: string
slug: string
isTeamFromFree: boolean
}) => {
return (
{isTeamFromFree && }
{isTeamFromFree && }
{isTeamFromFree && }
Team
}
/>
Set up
}
/>
Docs
}
/>
Docs
}
/>
)
}