11import { appLinks } from '../../config/links'
22import type { IndividualPlanUpgradeRecommendation } from '../../utils/individualPlanUpgrade'
33import { formatAic , formatUsd } from '../../utils/format'
4- import { NegotiatedDiscountDisclaimer } from './NegotiatedDiscountDisclaimer '
4+ import { ExistingDiscountDisclaimer } from './ExistingDiscountDisclaimer '
55import { PromotionalDataDisclaimer } from './PromotionalDataDisclaimer'
66
77export type BillingTotalsCardsProps = {
@@ -18,7 +18,7 @@ export type BillingTotalsCardsProps = {
1818 business : number
1919 enterprise : number
2020 }
21- showNegotiatedDiscountDisclaimer ?: boolean
21+ showExistingDiscountDisclaimer ?: boolean
2222 showPromotionalDataDisclaimer ?: boolean
2323 upgradeRecommendation ?: IndividualPlanUpgradeRecommendation | null
2424 className ?: string
@@ -35,7 +35,7 @@ export function BillingTotalsCards({
3535 aicQuantity,
3636 licenseAmount,
3737 licenseSeatCounts,
38- showNegotiatedDiscountDisclaimer = false ,
38+ showExistingDiscountDisclaimer = false ,
3939 showPromotionalDataDisclaimer = false ,
4040 upgradeRecommendation = null ,
4141 className = '' ,
@@ -89,15 +89,15 @@ export function BillingTotalsCards({
8989 < span > { formatUsd ( licenseAmount ) } </ span >
9090 </ div >
9191 ) }
92- { ( licenseAmount !== undefined || showNegotiatedDiscountDisclaimer ) && (
92+ { ( licenseAmount !== undefined || showExistingDiscountDisclaimer ) && (
9393 < div className = "pt-[6px] border-t border-border-default" >
9494 { licenseAmount !== undefined && (
9595 < div className = "flex justify-between items-center text-[13px] text-fg-default tabular-nums font-semibold" >
9696 < span > Total (license + overages)</ span >
9797 < span > { formatUsd ( pruTotalAmount ) } </ span >
9898 </ div >
9999 ) }
100- { showNegotiatedDiscountDisclaimer && < NegotiatedDiscountDisclaimer /> }
100+ { showExistingDiscountDisclaimer && < ExistingDiscountDisclaimer /> }
101101 </ div >
102102 ) }
103103 </ div >
@@ -128,17 +128,17 @@ export function BillingTotalsCards({
128128 < span > { formatUsd ( licenseAmount ) } </ span >
129129 </ div >
130130 ) }
131- { ( licenseAmount !== undefined || showNegotiatedDiscountDisclaimer || showPromotionalDataDisclaimer ) && (
131+ { ( licenseAmount !== undefined || showExistingDiscountDisclaimer || showPromotionalDataDisclaimer ) && (
132132 < div className = "pt-[6px] border-t border-border-default" >
133133 { licenseAmount !== undefined && (
134134 < div className = "flex justify-between items-center text-[13px] text-fg-default tabular-nums font-semibold" >
135135 < span > Total (license + additional usage)</ span >
136136 < span > { formatUsd ( aicTotalAmount ) } </ span >
137137 </ div >
138138 ) }
139- { showNegotiatedDiscountDisclaimer && (
139+ { showExistingDiscountDisclaimer && (
140140 < >
141- < NegotiatedDiscountDisclaimer />
141+ < ExistingDiscountDisclaimer />
142142 < PromotionalDataDisclaimer scope = "organization" />
143143 </ >
144144 ) }
0 commit comments