// #region [Imports] =================================================================================================== // Libraries import { Select, InputNumber } from 'antd'; // Types import { ICartConditionField } from '../../../../../types/couponTemplates'; // Components import ConditionLogic from '../ConditionLogic'; // Helpers import { getConditionOptions } from '../../../../../helpers/utils'; // #endregion [Imports] // #region [Variables] ================================================================================================= declare var acfwAdminApp: any; // #endregion [Variables] // #region [Interfaces]================================================================================================= interface IFieldData { condition: string; value: number; } interface IProps { field: ICartConditionField; onChange: (data: IFieldData) => void; } // #endregion [Interfaces] // #region [Component] ================================================================================================= const CartSubtotal = (props: IProps) => { const { field, onChange } = props; const { labels } = acfwAdminApp.coupon_templates_page; const handleChange = (dataKey: string, value: any) => { const data = { ...field.data, [dataKey]: value }; onChange(data); }; return (

{field.i18n.title}