import { defineMessages , MessageDescriptor } from 'react-intl' ; interface IRejectMessages extends Record < string | number | symbol , MessageDescriptor > { rejectionFormTitle : MessageDescriptor ; rejectionReasonSubmit : MessageDescriptor ; rejectionForm : MessageDescriptor ; rejectionReason : MessageDescriptor ; rejectionReasonDuplicate : MessageDescriptor ; rejectionReasonMisspelling : MessageDescriptor ; rejectionReasonMissingSupportingDoc : MessageDescriptor ; rejectionReasonOther : MessageDescriptor ; rejectionCommentForHealthWorkerLabel : MessageDescriptor ; rejectionFormInstruction : MessageDescriptor ; } const messagesToDefine = { rejectionFormTitle : { id : 'review.rejection.form.title' , defaultMessage : 'What update does the application require?' , description : 'Rejection form title' } , rejectionFormInstruction : { id : 'review.rejection.form.instruction' , defaultMessage : 'Please document specific details of required updates for follow up action.' , description : 'Rejection form instruction' } , rejectionReasonSubmit : { id : 'review.rejection.form.submitButton' , defaultMessage : 'Submit rejection' , description : 'Rejection form submit button' } , rejectionForm : { id : 'review.rejection.form' , defaultMessage : 'Rejection Form' , description : 'Rejection form name' } , rejectionReason : { id : 'review.rejection.form.reasons' , defaultMessage : 'Reason(s) for rejection:' , description : 'Rejection reasons checkbox label' } , rejectionReasonDuplicate : { id : 'review.rejection.form.reasons.duplicate' , defaultMessage : 'Duplicate application' , description : 'Label for rejection option duplicate' } , rejectionReasonMisspelling : { id : 'review.rejection.form.reasons.misspelling' , defaultMessage : 'Misspelling' , description : 'Label for rejection option misspelling' } , rejectionReasonMissingSupportingDoc : { id : 'review.rej.form.reasons.missSupDoc' , defaultMessage : 'Missing supporting documents' , description : 'Label for rejection option missing supporting doc' } , rejectionReasonOther : { id : 'review.rejection.form.reasons.other' , defaultMessage : 'Other' , description : 'Label for rejection option other' } , rejectionCommentForHealthWorkerLabel : { id : 'review.rejection.form.commentLabel' , defaultMessage : 'Comments or instructions for health worker to rectify application' } } ; export const messages = defineMessages ( messagesToDefine ) ;