2022-05-06 10:14:10 +00:00
|
|
|
import { SET_CAR_MODE } from './actionTypes';
|
|
|
|
|
|
|
|
export * from './actions.any';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a (redux) action which tells whether we are in carmode.
|
|
|
|
*
|
|
|
|
* @param {boolean} enabled - Whether we are in carmode.
|
|
|
|
* @returns {{
|
|
|
|
* type: SET_CAR_MODE,
|
|
|
|
* enabled: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
2022-10-28 10:07:58 +00:00
|
|
|
export function setIsCarmode(enabled: boolean) {
|
2022-05-06 10:14:10 +00:00
|
|
|
return {
|
|
|
|
type: SET_CAR_MODE,
|
|
|
|
enabled
|
|
|
|
};
|
|
|
|
}
|