diff --git a/packages/ui-components/src/components/benchmark/benchmark-workflow-list.tsx b/packages/ui-components/src/components/benchmark/benchmark-workflow-list.tsx index ba95f04372..3cecc21106 100644 --- a/packages/ui-components/src/components/benchmark/benchmark-workflow-list.tsx +++ b/packages/ui-components/src/components/benchmark/benchmark-workflow-list.tsx @@ -1,6 +1,26 @@ import { BenchmarkWorkflowBase } from '@openops/shared'; import { t } from 'i18next'; +const getBenchmarkCostMessage = (provider: string): string => { + switch (provider.toLowerCase()) { + case 'azure': + return t( + '* Running the benchmark triggers {provider} API calls, but these calls do not incur any charges.', + { provider }, + ); + case 'aws': + return t( + '* Running the benchmark triggers {provider} API calls, which may result in a small charge from {provider} (typically not exceeding $0.03 per account).', + { provider }, + ); + default: + return t( + '* Running the benchmark triggers {provider} API calls, which may result in a small charge from {provider}.', + { provider }, + ); + } +}; + export const BenchmarkWorkflowList = ({ workflows, provider, @@ -18,10 +38,7 @@ export const BenchmarkWorkflowList = ({ ))}
- {t( - '* Running the benchmark triggers {provider} API calls, which may result in a small charge from {provider} (typically not exceeding $0.03 per account).', - { provider }, - )} + {getBenchmarkCostMessage(provider)}
);