import { defineMessages , MessageDescriptor } from 'react-intl' ; interface IFieldAgentHomeMessages extends Record < string | number | symbol , MessageDescriptor > { inProgressCount : MessageDescriptor ; sentForReviewCount : MessageDescriptor ; requireUpdates : MessageDescriptor ; zeroUpdatesText : MessageDescriptor ; allUpdatesText : MessageDescriptor ; requireUpdatesLoading : MessageDescriptor ; } const messagesToDefine = { inProgressCount : { id : 'fieldAgentHome.inProgressCount' , defaultMessage : 'In progress ({total})' , description : 'The title of in progress tab' } , sentForReviewCount : { id : 'fieldAgentHome.sentForReviewCount' , defaultMessage : 'Sent for review ({total})' , description : 'The title of sent for review tab' } , requireUpdates : { id : 'fieldAgentHome.requireUpdatesCount' , defaultMessage : 'Require updates ({total})' , description : 'The title of require updates tab' } , zeroUpdatesText : { id : 'fieldAgentHome.zeroUpdatesText' , defaultMessage : 'No applications require updates' , description : 'The text when no rejected applications' } , allUpdatesText : { id : 'fieldAgentHome.allUpdatesText' , defaultMessage : 'Great job! You have updated all applications' , description : 'The text when all rejected applications updated' } , requireUpdatesLoading : { id : 'fieldAgentHome.requireUpdatesCountLoading' , defaultMessage : 'Checking your applications' , description : 'The text when all rejected applications are loading' } } ; export const messages = defineMessages ( messagesToDefine ) ;