import Divider from '@/app/components/base/divider' import { type BasicPlan, Plan, SelfHostedPlan, type UsagePlanInfo } from '../../type' import CloudPlanItem from './cloud-plan-item' import type { PlanRange } from '../plan-switcher/plan-range-switcher' import SelfHostedPlanItem from './self-hosted-plan-item' type PlansProps = { plan: { type: Plan usage: UsagePlanInfo total: UsagePlanInfo } currentPlan: string planRange: PlanRange canPay: boolean } const Plans = ({ plan, currentPlan, planRange, canPay, }: PlansProps) => { const currentPlanType: BasicPlan = plan.type === Plan.enterprise ? Plan.team : plan.type return (
{ currentPlan === 'cloud' && ( <> ) } { currentPlan === 'self' && <> }
) } export default Plans