zen: display BYOK cost

This commit is contained in:
Frank
2026-02-23 18:18:47 -05:00
parent 34495a70d5
commit 284251ad66
19 changed files with 36 additions and 5 deletions
@@ -177,7 +177,16 @@ export function UsageSection() {
<td data-slot="usage-cost">
<Show
when={usage.enrichment?.plan === "sub"}
fallback={<>${((usage.cost ?? 0) / 100000000).toFixed(4)}</>}
fallback={
<Show
when={usage.enrichment?.plan === "byok"}
fallback={<>${((usage.cost ?? 0) / 100000000).toFixed(4)}</>}
>
{i18n.t("workspace.usage.byok", {
amount: ((usage.cost ?? 0) / 100000000).toFixed(4),
})}
</Show>
}
>
{i18n.t("workspace.usage.subscription", {
amount: ((usage.cost ?? 0) / 100000000).toFixed(4),