RocketChat/Rocket.Chat

View on GitHub
packages/uikit-playground/src/Context/action/sidebarToggleAction.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ActionTypes } from "../reducer";

export type SidebarToggleAction = {
  type: ActionTypes.SidebarToggle,
  payload: boolean,
};

export const sidebarToggleAction = (payload: boolean): SidebarToggleAction => ({
  type: ActionTypes.SidebarToggle,
  payload,
});