import React from 'react'; import { css } from '@emotion/css'; import { Calculation } from '../calculators'; import { NAMESPACE, useWorkflowTranslation } from '../locale'; export default { title: `{{t("Calculation", { ns: "${NAMESPACE}" })}}`, type: 'calculation', group: 'control', fieldset: { 'config.calculation': { type: 'object', title: `{{t("Configure calculation", { ns: "${NAMESPACE}" })}}`, name: 'config.calculation', required: true, 'x-decorator': 'FormItem', 'x-component': 'CalculationConfig', } }, view: { }, components: { CalculationConfig({ value, onChange }) { return ( ); } }, getter() { const { t } = useWorkflowTranslation(); return
{t('Calculation result')}
; } };