// site/src/pricing.ts // 요금제 카드에 넣을 클라우드 사용량 표시값. 값의 정본은 // packages/core/src/plan-catalog.ts `PLAN_QUOTA`(서버 quota.ts도 같은 값을 쓴다)이고, // 여기서는 i18n 문구의 {haiku}/{sonnet}/{opus} 자리표시자 이름으로 바꾸기만 한다. // 가격(PLAN_PRICE_KRW)과 결제 링크(billingUrl)는 Pricing.tsx 가 정본에서 직접 읽는다. import { PLAN_QUOTA, type PlanQuotaFeature, type PlanTier } from '../../packages/core/src/plan-catalog' const QUOTA_PLACEHOLDERS: ReadonlyArray = [ ['haiku', 'llm_haiku'], ['sonnet', 'llm_sonnet'], ['opus', 'llm_opus'], ] /** 클라우드 다듬기 사용량. -1은 무제한. Free는 주간, 유료는 일간. 사용 불가(0) 모델은 뺀다. */ export function planCloudQuota(tier: PlanTier): Record { const quota: Record = {} for (const [placeholder, feature] of QUOTA_PLACEHOLDERS) { const { limit } = PLAN_QUOTA[tier][feature] if (limit !== 0) quota[placeholder] = limit } return quota }