import { IUtilityIsTwoPaneAction , IUtilityConfigAction , IUtilityPaneRectsAction , IUtilityOrientationAction } from "./utilityStore.interfaces" ; import { PUSH_PANERECTS , IS_TWOPANE , PUSH_CONFIG , PUSH_ORIENTATION } from "./utilityStore.types" ; import { IConfigComponent } from "../../utilities/interfaces" ; import { DeviceOrientation , WindowRect } from "react-native-dualscreeninfo" ; export const pushPaneRectsActions = ( paneRects ) : IUtilityPaneRectsAction => ( { type : PUSH_PANERECTS , payload : { paneRects : paneRects } } ) ; export const pushOrientationActions = ( orientation ) : IUtilityOrientationAction => ( { type : PUSH_ORIENTATION , payload : { orientation : orientation } } ) ; export const isTwoPaneAction = ( isTwoPane ) : IUtilityIsTwoPaneAction => ( { type : IS_TWOPANE , payload : { isTwoPane : isTwoPane } } ) ; export const pushConfigAction = ( config ) : IUtilityConfigAction => ( { type : PUSH_CONFIG , payload : { config : config } } ) ;