import React from 'react';
import { FastField, ErrorMessage } from 'formik';
import { FormattedMessage as T } from 'components';
import { useAutofocus } from 'hooks';
import {
Classes,
FormGroup,
TextArea,
Intent,
InputGroup,
} from '@blueprintjs/core';
import classNames from 'classnames';
import { CLASSES } from 'common/classes';
import { inputIntent } from 'utils';
import { FieldRequiredHint } from 'components';
import { useNotifyContactViaSMSContext } from './NotifyContactViaSMSFormProvider';
/**
* Notify contact via SMS fields.
*/
function NotifyContactViaSMSFormFields() {
return (
{/* ----------- 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_personal_phone',
CLASSES.FILL,
)}
>
)}
{/* ----------- Message Text ----------- */}
{({ field, meta: { error, touched } }) => (
}
labelInfo={}
className={'form-group--sms_message'}
intent={inputIntent({ error, touched })}
helperText={}
>
)}
);
}
export default NotifyContactViaSMSFormFields;