RocketChat/Rocket.Chat

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

Summary

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

export type DuplicateScreenAction = {
  type: ActionTypes.DuplicateScreen,
  payload: { id: string, name?: string },
};

export const duplicateScreenAction = (payload: {
  id: string,
  name?: string,
}): DuplicateScreenAction => ({
  type: ActionTypes.DuplicateScreen,
  payload,
});