RocketChat/Rocket.Chat

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

Summary

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

export type SurfaceAction = {
  type: ActionTypes.Surface,
  payload: number,
};

export const surfaceAction = (payload: number): SurfaceAction => ({
  type: ActionTypes.Surface,
  payload,
});