import { connect } from "react-redux" ; import { Dispatch } from "redux" ; import { State } from "providers/store" ; import { RememberMeActions , RememberMeState , setRememberMeAction , setRememberMeFailedAction } from "providers/store/remember-me" ; /**
 * Remember me state properties
 */ export interface WithRememberMeState { remember : RememberMeState ; } /**
 * Remember me dispatcher properties
 */ export interface WithRememberMeDispatch { setRememberMe ( active ) : void ; setRememberMeFailed ( ) : void ; } /**
 * Remember me properties
 */ export type WithRememberMe = WithRememberMeState & WithRememberMeDispatch ; return export const withRememberMe = ( ) => connect < WithRememberMeState , WithRememberMeDispatch , { } , State > ( ( { remember } ) => ( { remember } ) , ( dispatch ) => ( { setRememberMe : active => dispatch ( setRememberMeAction ( active ) ) , setRememberMeFailed : ( ) => dispatch ( setRememberMeFailedAction ( ) ) } ) ) ;