diff --git a/api-editor/gui/src/features/packageData/selectionView/ParameterView.tsx b/api-editor/gui/src/features/packageData/selectionView/ParameterView.tsx index 156fddf31..5f1d8cd79 100644 --- a/api-editor/gui/src/features/packageData/selectionView/ParameterView.tsx +++ b/api-editor/gui/src/features/packageData/selectionView/ParameterView.tsx @@ -48,6 +48,15 @@ export const ParameterView: React.FC = function ({ pythonPar )} + {parameterUsages && ( + + + Usages + + + + )} + {parameterUsages && ( @@ -141,3 +150,13 @@ const isStringifiedLiteral = function (value: string): boolean { } return !Number.isNaN(Number.parseFloat(value)); }; + +const UsageSum: React.FC = function ({ parameterUsages }) { + let usage = 0; + + parameterUsages.forEach((value) => { + usage += value; + }); + + return {usage}; +};