2023-05-03 14:28:39 +01:00
|
|
|
import { createAction } from '@reduxjs/toolkit';
|
2023-05-10 11:59:29 +01:00
|
|
|
|
2023-05-08 14:10:21 +01:00
|
|
|
import type { LayoutType } from '../is_mobile';
|
2023-05-03 14:28:39 +01:00
|
|
|
|
|
|
|
export const focusApp = createAction('APP_FOCUS');
|
|
|
|
export const unfocusApp = createAction('APP_UNFOCUS');
|
|
|
|
|
2023-05-10 11:59:29 +01:00
|
|
|
interface ChangeLayoutPayload {
|
2023-05-08 14:10:21 +01:00
|
|
|
layout: LayoutType;
|
2023-05-10 11:59:29 +01:00
|
|
|
}
|
2023-05-03 14:28:39 +01:00
|
|
|
export const changeLayout =
|
|
|
|
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');
|