'use client' import { Organization } from '~/data/organizations' import { useSendTelemetryEvent } from '~/lib/telemetry' import Link from 'next/link' import { plans } from 'shared-data/plans' import { Button, cn } from 'ui' import { Check } from './PricingIcons' import UpgradePlan from './UpgradePlan' import { isCrossZoneHref } from '@/lib/cross-zone' interface PricingPlansProps { organizations?: Organization[] hasExistingOrganizations?: boolean } const PricingPlans = ({ organizations, hasExistingOrganizations }: PricingPlansProps) => { const sendTelemetryEvent = useSendTelemetryEvent() const orgSlug = organizations?.[0]?.slug return (
{plan.description}
{plan.priceLabel}
{plan.name !== 'Enterprise' ? '$' : ''} {plan.priceMonthly}
{plan.costUnit}
{isUpgradablePlan ? (
First project included.
Additional from $10/mo.
See how pricing scales
) : (
footer
)}
{plan.preface}
{feature[1]}
)}