import { Store } from '@/store/root' ; import { ScreenState } from './index' ; function _stateScope ( state ) { return state . containers . changeUserProfileForm ; } function isSending ( state ) { return _stateScope ( state ) . screenState === ScreenState . SENDING ; } function isSendFailed ( state ) { return _stateScope ( state ) . screenState === ScreenState . SEND_FAILED ; } function isSendSuccess ( state ) { return _stateScope ( state ) . screenState === ScreenState . SEND_SUCCESS ; } function isOpen ( state ) { return _stateScope ( state ) . isOpen ; } export default { isSending , isSendSuccess , isSendFailed , isOpen , } ;