import { store } from "../../appStore" ; import { isTwoPaneAction , pushConfigAction , pushOrientationActions , pushPaneRectsActions } from "./utilityStore.actions" ; import { IConfigComponent } from "../../utilities/interfaces" ; import { DeviceOrientation , WindowRect } from "react-native-dualscreeninfo" ; const pushPaneRects = ( paneRects ) => { store . dispatch ( pushPaneRectsActions ( paneRects ) ) ; } ; const pushOrientation = ( orientation ) => { store . dispatch ( pushOrientationActions ( orientation ) ) ; } ; const pushIsTwoPane = ( isTwoPane ) => { store . dispatch ( isTwoPaneAction ( isTwoPane ) ) ; } ; const pushConfig = ( config ) => { store . dispatch ( pushConfigAction ( config ) ) ; } ; const _UtilityFunctions = { pushPaneRects , pushOrientation , pushIsTwoPane , pushConfig } ; type utilityFunctions = typeof _UtilityFunctions ; const utilityStore = _UtilityFunctions ; export default utilityStore ;