RocketChat/Rocket.Chat

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

Summary

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

export type TemplatesToggleAction = {
  type: ActionTypes.TemplatesToggle,
  payload: boolean,
};

export const templatesToggleAction = (payload: boolean): TemplatesToggleAction => ({
  type: ActionTypes.TemplatesToggle,
  payload,
});