theluyuan 38ba663466
Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
init
2025-09-02 14:49:16 +08:00

20 lines
400 B
TypeScript

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
* }}
*/
export function setIsCarmode(enabled: boolean) {
return {
type: SET_CAR_MODE,
enabled
};
}