import { ActionsUnion , createAction } from '../../utils' ; import { RedirectActionTypes } from './actionTypes' ; export const redirect = ( url ) => createAction ( RedirectActionTypes . REDIRECT , { url } ) ; const actions = { redirect , } ; export type RedirectActions = ActionsUnion < typeof actions > ;