catstodon/app/javascript/flavours/glitch/actions/app.ts

8 lines
223 B
TypeScript
Raw Normal View History

import { createAction } from '@reduxjs/toolkit';
type ChangeLayoutPayload = {
layout: 'mobile' | 'single-column' | 'multi-column';
};
export const changeLayout =
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');