import React from 'react'; import { FastField, ErrorMessage } from 'formik'; import { FormGroup, InputGroup } from '@blueprintjs/core'; import classNames from 'classnames'; import styled from 'styled-components'; import { ListSelect, FieldRequiredHint, FormattedMessage as T, } from 'components'; import { CLASSES } from 'common/classes'; import { inputIntent } from 'utils'; export default function NotifyViaSMSFormFields({ notificationTypes }) { return ( {({ form, meta: { error, touched } }) => ( } className={classNames(CLASSES.FILL)} intent={inputIntent({ error, touched })} helperText={} > { form.setFieldValue('notification_key', notification.key); }} disabled={notificationTypes.length < 2} /> )} {/* ----------- Send Notification to ----------- */} {({ form, field, meta: { error, touched } }) => ( } className={classNames('form-group--customer-name', CLASSES.FILL)} labelInfo={} intent={inputIntent({ error, touched })} helperText={} > )} {/* ----------- Phone number ----------- */} {({ form, field, meta: { error, touched } }) => ( } labelInfo={} intent={inputIntent({ error, touched })} helperText={} className={classNames( 'form-group--customer_phone_number', CLASSES.FILL, )} > )} ); } const NotifyViaSMSFormFieldsRoot = styled.div``;