Const Msg
Msg: (Anonymous function) & object = injectMainStore(observer(({entityName, propertyName, mainStore}: Props) => {if (mainStore == null || mainStore.messages == null) {return <>propertyName</>;}const {messages} = mainStore;const message: string = messages[entityName + '.' + propertyName];return message != null? <>{message}</>: <>{propertyName}</>}))