// #region [Imports] =================================================================================================== // Libraries import { useMemo } from 'react'; import { Select } from 'antd'; // Types import { ICartConditionField } from '../../../../../types/couponTemplates'; // #endregion [Imports] // #region [Variables] ================================================================================================= declare var acfwAdminApp: any; declare var _: any; // #endregion [Variables] // #region [Interfaces]================================================================================================= interface IProps { field: ICartConditionField; onChange: (data: string[]) => void; } // #endregion [Interfaces] // #region [Component] ================================================================================================= const CustomerUserRole = (props: IProps) => { const { field, onChange } = props; const options = useMemo( () => _.map(field.i18n.options, (label: string, value: string) => ({ value, label })), [field.i18n.options] ); return (

{field.i18n.title}