import { createAction } from '@reduxjs/toolkit' ; import { User } from './user.model' ; export enum UserActionTypes { UPSERT = '[User] Upsert User' , UPDATE = '[User] Update User' } export const upsertUser = createAction ( UserActionTypes . UPSERT , ( payload ) => ( { payload } ) ) ; export const updateUser = createAction ( UserActionTypes . UPDATE , ( payload ) => ( { payload } ) ) ;